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]):
+ if not database.copy_temporary_contents(package, version, files[newfile], reject):
reject("Missing contents for package")
orig_tar_id = Upload.pkg.orig_tar_id
import time
import types
import utils
-from dbconn import DBConn
+from binary import Binary
################################################################################
################################################################################
-def copy_temporary_contents(package, version, deb):
+def copy_temporary_contents(package, version, deb, reject):
"""
copy the previously stored contents from the temp table to the permanant one
message = utils.TemplateSubst(subst, Cnf["Dir::Templates"]+"/missing-contents")
utils.send_mail( message )
- exists = DBConn().insert_content_path(package, version, deb)
+ Binary(deb, reject).scan_package()
if exists:
sql = """INSERT INTO content_associations(binary_pkg,filepath,filename)