chiark / gitweb /
Better gradle signature config filter
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Oct 2013 16:22:08 +0000 (17:22 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 31 Oct 2013 16:23:12 +0000 (17:23 +0100)
fdroidserver/common.py

index 92e866a1f6ba9e70d3ad41e44d5a8fab56820235..58c8d04cc3c2095f6bd81ffeb781636de3f98ad2 100644 (file)
@@ -1886,6 +1886,6 @@ def clean_gradle_keys(path, verbose):
                     opened += 1
                 elif '}' in line:
                     opened -=1
-            elif 'signingConfig' not in line:
+            elif not any(s in line for s in (' signingConfig ',)):
                 o.write(line)