mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Allow absolute path to repo_icon
This commit is contained in:
parent
73a73fd896
commit
64774f0a80
1 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ doc.appendChild(root)
|
||||||
|
|
||||||
repoel = doc.createElement("repo")
|
repoel = doc.createElement("repo")
|
||||||
repoel.setAttribute("name", repo_name)
|
repoel.setAttribute("name", repo_name)
|
||||||
repoel.setAttribute("icon", repo_icon)
|
repoel.setAttribute("icon", os.path.basename(repo_icon))
|
||||||
repoel.setAttribute("url", repo_url)
|
repoel.setAttribute("url", repo_url)
|
||||||
if repo_keyalias != None:
|
if repo_keyalias != None:
|
||||||
repoel.setAttribute("pubkey", repo_pubkey)
|
repoel.setAttribute("pubkey", repo_pubkey)
|
||||||
|
@ -390,7 +390,7 @@ if repo_keyalias != None:
|
||||||
print output
|
print output
|
||||||
|
|
||||||
#Copy the repo icon into the repo directory...
|
#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)
|
shutil.copyfile(repo_icon, iconfilename)
|
||||||
|
|
||||||
print "Finished."
|
print "Finished."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue