X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=e55ac54d0a320cd53e4cc92e932103392aecdacd;hb=b7e5c9a6deda1018da9023d1d01acec86e165ba4;hp=64679c13586acbddbb725895fe228bbb5329e9da;hpb=53b1ea6471352779be349f2724341981ddb0f7c1;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 64679c13..e55ac54d 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, filename, reject): - reject("Missing contents for package") + if not database.copy_temporary_contents(package, version, architecture, 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