From: Ciaran Gultnieks Date: Tue, 13 Sep 2011 11:10:07 +0000 (+0100) Subject: Use correct base directory for patching X-Git-Tag: 0.1~1289 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3ccae6bbfe32835f62e4234de29aed8417bfb505;p=fdroidserver.git Use correct base directory for patching --- diff --git a/build.py b/build.py index 0159e16d..b9ddce73 100755 --- a/build.py +++ b/build.py @@ -232,7 +232,7 @@ for app in apps: print "Applying " + patch patch_path = os.path.join('metadata', app['id'], patch) if subprocess.call(['patch', '-p1', - '-i', os.path.abspath(patch_path)], cwd=root_dir) != 0: + '-i', os.path.abspath(patch_path)], cwd=build_dir) != 0: print "Failed to apply patch %s" % patch_path sys.exit(1)