Commit 27d0ff89 authored by Stefano Babic's avatar Stefano Babic
Browse files

Fix check of fetched data

Commit c6634ee0

 introduces check for
fetched data in case they are not local but remote from a repo, and skip
repos to be added to the SWU file. This breaks local install because the
check is not done on an absolute pathname.
Reported-by: default avatarVincent Prince <>
Signed-off-by: Stefano Babic's avatarStefano Babic <>
Tested-by: default avatarVincent Prince <>
parent e54958c0
......@@ -98,7 +98,7 @@ python do_swuimage () {
for url in fetch.urls:
local = fetch.localpath(url)
filename = os.path.basename(local)
if (filename != 'sw-description') and (os.path.isfile(filename)):
if (filename != 'sw-description') and (os.path.isfile(local)):
shutil.copyfile(local, os.path.join(s, "%s" % filename ))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment