From 64774f0a80c5dc08e4e9062ba7faab2d0368cc9c Mon Sep 17 00:00:00 2001 From: Henrik Tunedal Date: Fri, 25 Feb 2011 23:11:39 +0100 Subject: [PATCH] Allow absolute path to repo_icon --- update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 2aa09c0d..f88c33b4 100755 --- a/update.py +++ b/update.py @@ -241,7 +241,7 @@ doc.appendChild(root) repoel = doc.createElement("repo") repoel.setAttribute("name", repo_name) -repoel.setAttribute("icon", repo_icon) +repoel.setAttribute("icon", os.path.basename(repo_icon)) repoel.setAttribute("url", repo_url) if repo_keyalias != None: repoel.setAttribute("pubkey", repo_pubkey) @@ -390,7 +390,7 @@ if repo_keyalias != None: print output #Copy the repo icon into the repo directory... -iconfilename = os.path.join(icon_dir, repo_icon) +iconfilename = os.path.join(icon_dir, os.path.basename(repo_icon)) shutil.copyfile(repo_icon, iconfilename) print "Finished."