chiark / gitweb /
build: don't add extra clean tasks
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 11 Jan 2016 01:05:43 +0000 (02:05 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 11 Jan 2016 01:05:43 +0000 (02:05 +0100)
It is a good idea in theory, especially for extra tasks specified by the
user. But in practice, tasks specified by developers often don't have a
clean counterpart. So this just breaks the build.

fdroidserver/build.py

index 7ad765b472431ae9b346abceaae30d3c09cab95a..463e60573abe4afff1ee088eb82ea75200194de7 100644 (file)
@@ -526,11 +526,6 @@ def build_local(app, build, vcs, build_dir, output_dir, srclib_dir, extlib_dir,
         if build.gradleprops:
             cmd += ['-P'+kv for kv in build.gradleprops]
 
-        for task in gradletasks:
-            parts = task.split(':')
-            parts[-1] = 'clean' + capitalize_intact(parts[-1])
-            cmd += [':'.join(parts)]
-
         cmd += ['clean']
 
         p = FDroidPopen(cmd, cwd=root_dir)