]> err.no Git - dak/commitdiff
Adjust filename passed to get_poolfile_like_name
authorLuca Falavigna <dktrkranz@debian.org>
Fri, 1 Jan 2010 12:49:30 +0000 (12:49 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Fri, 1 Jan 2010 12:49:30 +0000 (12:49 +0000)
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

index 907e98c3211a5f7efe41c61927aa4c3f5726639d..58a8783442f70a87281dc96ffabdadae6d4e05ae 100755 (executable)
@@ -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
                 )