]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_accepted.py
fix things I broke yesterday with the contents merge
[dak.git] / dak / process_accepted.py
index d2b01c6441cbb22440b6836db285378160f3a675..e55ac54d0a320cd53e4cc92e932103392aecdacd 100755 (executable)
@@ -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("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