]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_unchecked.py
fixing Binary.reject. adding better logging when we get an error in contents insertion
[dak.git] / dak / process_unchecked.py
index 491c5560ec7b7c968b17bbeeb37c4514f778c049..dd97b6c7252d9c9eaf323fb336402a972e19941a 100755 (executable)
@@ -400,7 +400,7 @@ def check_files():
     cursor = DBConn().cursor()
     # Check for packages that have moved from one component to another
     # STU: this should probably be changed to not join on architecture, suite tables but instead to used their cached name->id mappings from DBConn
-    cursor.execute("""PREPARE moved_pkg_q AS
+    cursor.execute("""PREPARE moved_pkg_q(text,text,text) AS
         SELECT c.name FROM binaries b, bin_associations ba, suite s, location l,
                     component c, architecture a, files f
         WHERE b.package = $1 AND s.suite_name = $2
@@ -572,7 +572,7 @@ def check_files():
             # Check the version and for file overwrites
             reject(Upload.check_binary_against_db(f),"")
 
-            Binary(f).scan_package()
+            Binary(f, reject).scan_package( )
 
         # Checks for a source package...
         else: