mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-13 02:30:30 +03:00
Move gpg signatures to archive along with the other files
This commit is contained in:
parent
693cb7ce70
commit
1a11982897
1 changed files with 6 additions and 0 deletions
|
|
@ -876,6 +876,12 @@ def archive_old_apks(apps, apks, archapks, repodir, archivedir, defaultkeepversi
|
||||||
if 'srcname' in apk:
|
if 'srcname' in apk:
|
||||||
shutil.move(os.path.join(repodir, apk['srcname']),
|
shutil.move(os.path.join(repodir, apk['srcname']),
|
||||||
os.path.join(archivedir, apk['srcname']))
|
os.path.join(archivedir, apk['srcname']))
|
||||||
|
# Move GPG signature too...
|
||||||
|
sigfile = apk['srcname'] + '.asc'
|
||||||
|
sigsrc = os.path.join(repodir, sigfile)
|
||||||
|
if os.path.exists(sigsrc):
|
||||||
|
shutil.move(sigsrc, os.path.join(archivedir, sigfile))
|
||||||
|
|
||||||
archapks.append(apk)
|
archapks.append(apk)
|
||||||
apks.remove(apk)
|
apks.remove(apk)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue