[dak/master] Adjust filename passed to get_poolfile_like_name
get_poolfile_like_name is pickier when parsing file names, so
adhere to the new schema to avoid wrong matches.
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
daklib/queue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/daklib/queue.py b/daklib/queue.py
index 907e98c..58a8783 100755
--- a/daklib/queue.py
+++ b/daklib/queue.py
@@ -1225,7 +1225,7 @@ class Upload(object):
found = False
# Look in the pool
- for poolfile in get_poolfile_like_name('/%s' % filename, session_):
+ for poolfile in get_poolfile_like_name('%s' % filename, session_):
poolfile_path = os.path.join(
poolfile.location.path, poolfile.filename
)
--
1.6.5
Reply to: