From be344f7eafb39d2374938fd92de9cb57cab8dfd3 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sun, 27 Dec 2009 13:03:49 +0100 Subject: [PATCH] add_dsc_to_db: fix typo u <-> up * rename up to up_id to make it easier to distinguish Signed-off-by: Torsten Werner --- daklib/dbconn.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 8d5dd4b5..85ba3ab3 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2277,15 +2277,16 @@ def add_dsc_to_db(u, filename, session=None): uploader_ids.append(get_or_set_maintainer(up, session).maintainer_id) added_ids = {} - for up in uploader_ids: - if added_ids.has_key(up): - utils.warn("Already saw uploader %s for source %s" % (up, source.source)) + for up_id in uploader_ids: + if added_ids.has_key(up_id): + import utils + utils.warn("Already saw uploader %s for source %s" % (up_id, source.source)) continue - added_ids[u]=1 + added_ids[up_id]=1 su = SrcUploader() - su.maintainer_id = up + su.maintainer_id = up_id su.source_id = source.source_id session.add(su) -- 2.39.5