]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_accepted.py
handle unable to scan contents with a dak exception
[dak.git] / dak / process_accepted.py
index 64679c13586acbddbb725895fe228bbb5329e9da..3d97473fb3ae6255d373af4991fa190ff73e6597 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, filename, reject):
-                reject("Missing contents for package")
+            if not database.copy_temporary_contents(package, version, newfile, reject):
+                print "REJECT\n" + reject_message,
+                projectB.query("COMMIT WORK")
+                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