X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=e597a8e23ac52524ce78f80ac1b68acc7aae2f74;hb=1483a68353fe374254379f4560cc245fbf2523d4;hp=941acd95941162fae54114c5d7c92b4ce6a2b23e;hpb=9af1235da5224336ede312fb5c3e0fe791bc19f0;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 941acd95..e597a8e2 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -374,12 +374,9 @@ 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)) - # insert contents into the database - contents = utils.generate_contents_information(file) - q = projectB.query("SELECT currval('binaries_id_seq')") - bin_id = int(q.getresult()[0][0]) - for file in contents: - database.insert_content_path(bin_id, file) + + if not database.copy_temporary_contents(package, version, files[newfile]): + reject("Missing contents for package") # If the .orig.tar.gz is in a legacy directory we need to poolify # it, so that apt-get source (and anything else that goes by the