X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=97c5d0d512d5f0c9e692a0fee54abd587d350e97;hb=9ab9e101a215be6125f0f2ccb73d346de4571014;hp=c30e9c4999dfb681b6068c62c4b6570058914bad;hpb=4764b7c2bdd0e3203dbd7cd3b871138c58c3855c;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index c30e9c49..97c5d0d5 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -390,8 +390,11 @@ def install (): 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, files[newfile], reject): - reject("Missing contents for package") + if not database.copy_temporary_contents(package, version, newfile, reject): + print "REJECT\n" + reject_message, + projectB.query("ROLLBACK") + raise MissingContents, "No contents stored for package %s, and couldn't determine contents of %s" % (package, newfile ) + orig_tar_id = Upload.pkg.orig_tar_id orig_tar_location = Upload.pkg.orig_tar_location