From 6f97be128fbad07c0339ce94f70ae118be67f6e5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 27 Nov 2017 22:29:11 +0100 Subject: [PATCH] nightly: fix QR code repo icon generation --- fdroidserver/nightly.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fdroidserver/nightly.py b/fdroidserver/nightly.py index 3834f79e..9be69a43 100644 --- a/fdroidserver/nightly.py +++ b/fdroidserver/nightly.py @@ -186,10 +186,10 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base, mirror_git_repo.git.add(all=True) mirror_git_repo.index.commit("update README") - icon_path = os.path.join(repo_basedir, 'icon.png') + icon_path = os.path.join(git_mirror_path, 'icon.png') try: import qrcode - img = qrcode.make('Some data here') + img = qrcode.make(repo_url) with open(icon_path, 'wb') as fp: fp.write(img) except Exception: @@ -197,6 +197,7 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base, shutil.copy(exampleicon, icon_path) mirror_git_repo.git.add(all=True) mirror_git_repo.index.commit("update repo/website icon") + shutil.copy(icon_path, repo_basedir) os.chdir(repo_basedir) common.local_rsync(options, git_mirror_repodir + '/', 'repo/') -- 2.30.2