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>
found = False
# Look in the pool
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
)
poolfile_path = os.path.join(
poolfile.location.path, poolfile.filename
)