chiark / gitweb /
Move gpg signatures to archive along with the other files
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 30 Jun 2014 21:53:02 +0000 (22:53 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 30 Jun 2014 21:53:02 +0000 (22:53 +0100)
fdroidserver/update.py

index 3d9a98d0938e14228d15b4b5a86bc34eee4ba981..92ec3fab5857f049cdddc8b15ce3d4e79196bc38 100644 (file)
@@ -876,6 +876,12 @@ def archive_old_apks(apps, apks, archapks, repodir, archivedir, defaultkeepversi
                 if 'srcname' in apk:
                     shutil.move(os.path.join(repodir, 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)
                 apks.remove(apk)