X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=0d5a5387e3fbcf556c96872608d93cfc843f9005;hb=d6c675a02c32f25a25748834c8e80a3577ec9f25;hp=6013b18c9b5abec05b868a888c66f10771a8dbb9;hpb=f8996e240d9d0278bce098e23be63db0bcc6fbee;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 6013b18c..0d5a5387 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -408,7 +408,7 @@ def install (): if new_files_id == None: utils.copy(old_filename, Cnf["Dir::Pool"] + new_filename) new_files_id = database.set_files_id(new_filename, file_size, file_md5sum, file_sha1sum, file_sha256sum, dsc_location_id) - projectB.query("UPDATE dsc_files SET file = %s WHERE source = %s AND file = %s" % (new_files_id, source_id, orig_tar_id)) + projectB.query("UPDATE dsc_files SET file = %s WHERE source = %s AND file = %s" % (new_files_id, database.get_source_id(changes["source"], changes["version"]), orig_tar_id)) # Install the files into the pool for file in files.keys():