From 798f9f53f2f944e42c1dc9be4bfdfd93b502c3b8 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Tue, 20 Aug 2019 15:10:49 +0100 Subject: [PATCH] build-relocatable-install: Wrap long lines Signed-off-by: Simon McVittie <smcv@collabora.com> --- build-relocatable-install.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build-relocatable-install.py b/build-relocatable-install.py index 664639ea8..1bd87dac0 100755 --- a/build-relocatable-install.py +++ b/build-relocatable-install.py @@ -584,10 +584,12 @@ def main(): ) subprocess.check_call([ 'tar', - r'--transform=s,^\(\.\(/\|$\)\)\?,pressure-vessel{}/,'.format( + (r'--transform=' + r's,^\(\.\(/\|$\)\)\?,pressure-vessel{}/,').format( tail, ), - '--exclude=metadata', # this is all duplicated in sources/ + # metadata/ is all duplicated in sources/ + '--exclude=metadata', '-zcvf', src_tar + '.tmp', '-C', installation, '.', @@ -597,7 +599,8 @@ def main(): subprocess.check_call([ 'tar', - r'--transform=s,^\(\.\(/\|$\)\)\?,pressure-vessel{}/,'.format( + (r'--transform=' + r's,^\(\.\(/\|$\)\)\?,pressure-vessel{}/,').format( tail, ), '--exclude=sources', -- GitLab