From: Mark Hymers Date: Sun, 15 Nov 2009 17:48:38 +0000 (+0000) Subject: Import poolify X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0a8a7d206488703cc672b166dd615d5958f043;p=dak Import poolify Signed-off-by: Mark Hymers --- diff --git a/dak/import_new_files.py b/dak/import_new_files.py index 54e85eba..ecc03044 100755 --- a/dak/import_new_files.py +++ b/dak/import_new_files.py @@ -37,6 +37,7 @@ import apt_pkg from daklib.dbconn import DBConn, get_dbchange, get_policy_queue, session_wrapper, ChangePendingFile from daklib.config import Config from daklib.queue import Upload +from daklib.utils import poolify # where in dak.conf all of our configuration will be stowed options_prefix = "NewFiles" @@ -113,7 +114,7 @@ class ImportNewFiles(object): f.close() except IOError: # Can't find the file, try to look it up in the pool - poolname = utils.poolify(u.pkg.changes["source"], u.pkg.files[chg_fn]["component"]) + poolname = poolify(u.pkg.changes["source"], u.pkg.files[chg_fn]["component"]) l = get_location(cnf["Dir::Pool"], u.pkg.files[chg_fn]["component"], session=session) if not l: log.critical("ERROR: Can't find location for %s (component %s)" % (chg_fn, u.pkg.files[chg_fn]["component"]))