From 92ed7fbd0802e5c0b4ab9d7efe57fea0e6cc8594 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sat, 16 Aug 2008 04:51:44 +0000 Subject: [PATCH] fix set_files_id routine Signed-off-by: Mark Hymers --- dak/process_accepted.py | 2 +- daklib/database.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 5dd72f7f..5e09243f 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -353,7 +353,7 @@ def install (): if not files[file].has_key("location id") or not files[file]["location id"]: files[file]["location id"] = database.get_location_id(Cnf["Dir::Pool"],files[file]["component"],utils.where_am_i()) if not files[file].has_key("files id") or not files[file]["files id"]: - files[file]["files id"] = database.set_files_id (filename, files[file]["size"], files[file]["md5sum"], files[file]["location id"]) + files[file]["files id"] = database.set_files_id (filename, files[file]["size"], files[file]["md5sum"], files[file]["sha1sum"], files[file]["sha256sum"], files[file]["location id"]) source_id = database.get_source_id (source, source_version) if source_id: projectB.query("INSERT INTO binaries (package, version, maintainer, source, architecture, file, type, sig_fpr) VALUES ('%s', '%s', %d, %d, %d, %d, '%s', %d)" diff --git a/daklib/database.py b/daklib/database.py index e11d3cd6..9185d0a3 100755 --- a/daklib/database.py +++ b/daklib/database.py @@ -363,7 +363,7 @@ def get_or_set_queue_id (queue): def set_files_id (filename, size, md5sum, sha1sum, sha256sum, location_id): global files_id_cache - projectB.query("INSERT INTO files (filename, size, md5sum, sha1sum, sha256sum, location) VALUES ('%s', %d, '%s', %d)" % (filename, long(size), md5sum, sha1sum, sha256sum, location_id)) + projectB.query("INSERT INTO files (filename, size, md5sum, sha1sum, sha256sum, location) VALUES ('%s', %d, '%s', '%s', '%s', %d)" % (filename, long(size), md5sum, sha1sum, sha256sum, location_id)) return get_files_id (filename, size, md5sum, location_id) -- 2.39.5