1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Use correct base directory for patching

This commit is contained in:
Ciaran Gultnieks 2011-09-13 12:10:07 +01:00
parent 46307aaf38
commit 3ccae6bbfe

View File

@ -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)