]> git.decadent.org.uk Git - dak.git/commitdiff
Import poolify
authorMark Hymers <mhy@debian.org>
Sun, 15 Nov 2009 17:48:38 +0000 (17:48 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 15 Nov 2009 17:48:38 +0000 (17:48 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/import_new_files.py

index 54e85eba151a29bfedac4828311497a87d8f7de9..ecc03044eb497b7a025377e106b4cc86fbf9b8a9 100755 (executable)
@@ -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"]))