chiark / gitweb /
Forgot to execute cleaning process
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 10 Oct 2013 15:52:17 +0000 (17:52 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 10 Oct 2013 15:52:17 +0000 (17:52 +0200)
fdroidserver/build.py

index 39e233e4d035875bdcf00a980f12f7f0bdd56505..62c5d24d2d22e3ddd3f433f36227216dcc2b6517 100644 (file)
@@ -352,6 +352,8 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
     # We need to clean via the build tool in case the binary dirs are
     # different from the default ones
     p = None
+    output = ''
+    error = ''
     if 'maven' in thisbuild:
         print "Cleaning Maven project..."
         cmd = [mvn3, 'clean', '-Dandroid.sdk.path=' + sdk_path]
@@ -390,6 +392,11 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
         else:
             error += line
 
+    p.communicate()
+    if p.returncode != 0:
+        raise BuildException("Error cleaning %s:%s" %
+                (app['id'], thisbuild['version']), output, error)
+
     # Also clean jni
     print "Cleaning jni dirs..."
     for baddir in [