suite_id = database.get_suite_id(suite)
projectB.query("INSERT INTO bin_associations (suite, bin) VALUES (%d, currval('binaries_id_seq'))" % (suite_id))
- if not database.copy_temporary_contents(package, version, newfile, reject):
+ if not database.copy_temporary_contents(package, version, architecture, newfile, reject):
print "REJECT\n" + reject_message,
- projectB.query("COMMIT WORK")
+ projectB.query("ROLLBACK")
raise MissingContents, "No contents stored for package %s, and couldn't determine contents of %s" % (package, newfile )