From: Luca Falavigna Date: Fri, 1 Jan 2010 12:49:30 +0000 (+0000) Subject: Adjust filename passed to get_poolfile_like_name X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=377c3dc2d8e9022f675bb5f113bf2bc36ba348bc;p=dak 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 --- diff --git a/daklib/queue.py b/daklib/queue.py index 907e98c3..58a87834 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 )