From 58b81b5ca63dc9fad2cde6d739829c09a0a015c2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 12 Jul 2018 23:44:03 +0200 Subject: [PATCH] publish: strict regex replacement for .binary.apk . matches anything \. matches the char "." --- fdroidserver/publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/publish.py b/fdroidserver/publish.py index ee45e716..a6fb258c 100644 --- a/fdroidserver/publish.py +++ b/fdroidserver/publish.py @@ -236,7 +236,7 @@ def main(): # The binary should already have been retrieved during the build # process. - srcapk = re.sub(r'.apk$', '.binary.apk', apkfile) + srcapk = re.sub(r'\.apk$', '.binary.apk', apkfile) srcapk = srcapk.replace(unsigned_dir, binaries_dir) if not os.path.isfile(srcapk):