chiark / gitweb /
Discover apk filename from maven builds.
authorSimon Josefsson <simon@josefsson.org>
Tue, 5 Mar 2013 12:36:15 +0000 (13:36 +0100)
committerSimon Josefsson <simon@josefsson.org>
Tue, 5 Mar 2013 12:36:15 +0000 (13:36 +0100)
fdroidserver/build.py

index bfe35446dd13357e701b1763fa3d785cf2402fe7..bc7d6b4ee69281fc5d593ab72e15f2a1b8fa7a41 100644 (file)
@@ -351,6 +351,10 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, extlib_dir, tmp_dir,
             # This format is found in com.github.mobile for example...
             m = re.match(r".*^\[INFO\] [^$]*aapt \[package,[^$]*" + app['id'] + "/app/target/([^$]+)\.ap_\]",
                     output, re.S|re.M)
+        if not m:
+            # This format is found in com.yubico.yubitotp for example...
+            m = re.match(r".*^\[INFO\] [^$]*aapt \[package,[^$]*" + app['id'] + "/" + thisbuild['bindir'] + "/([^$]+)\.ap_,",
+                    output, re.S|re.M)
         if not m:
             print output
             raise BuildException('Failed to find output')