[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Import poolify



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 dak/import_new_files.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dak/import_new_files.py b/dak/import_new_files.py
index 54e85eb..ecc0304 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"]))
-- 
1.6.3.3


Reply to: