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 <vincent.prince.fr@gmail.com>
Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
Tested-by: default avatarVincent Prince <vincent.prince.fr@gmail.com>
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 ))
list_for_cpio.append(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