X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=4dd5b69d20f2bde74937027f9d8c5a72c5db4f12;hb=30c2db7d2f47ff65ec9126f03c1e1e893db1c22c;hp=b6f8a311b399f5b167e0fbddf5e354265ce5c103;hpb=5e1dd4d24cf24e29213ae7d461f3bc8f4f040fb4;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index b6f8a311..4dd5b69d 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -407,8 +407,10 @@ def install (): projectB.query("INSERT INTO bin_associations (suite, bin) VALUES (%d, currval('binaries_id_seq'))" % (suite_id)) # insert contents into the database + q = projectB.query("SELECT currval('binaries_id_seq')") + bin_id = int(q.getresult()[0][0]) for file in contents: - projectB.query("INSERT INTO contents (binary_pkg, file) VALUES (currval('binaries_id_seq'), '%s')" % file) + database.insert_content_path(bin_id, file) # 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