Fixed the below error un ubuntu 18.04
authorbiao716.wang <biao716.wang@samsung.com>
Wed, 26 Sep 2018 06:56:53 +0000 (14:56 +0800)
committerbiao716.wang <biao716.wang@samsung.com>
Wed, 26 Sep 2018 07:02:43 +0000 (15:02 +0800)
perl -i -pne 's/%setup -q -n %{name}-%{version}/%setup -q -n %{name}-%{version}\necho i am a mark/' packaging/sw-tools.spec
Unescaped left brace in regex is illegal here in regex; marked by &lt;-- HERE in m/%setup -q -n %{ &lt;-- HERE name}-%{version}/ at -e line 1.
perl version: v5.26.1
escaping the { inside the Regex by using \{

Change-Id: I248237ea5f5d214fb9f1819a403df525c1606244

cases/export/gbs_ex_with_patch_macro.case

index a681cdaf7f0628518136aaed73f9a46b5c697bba..01864ccf3350220c6daa66bf2c482350f23c4f49 100644 (file)
@@ -54,7 +54,7 @@ gbs import ../sw-tools-0.2.tar.gz --merge
 #generate a project with upstream
 git tag | grep upstream/0.2
 
-perl -i -pne 's/%setup -q -n %{name}-%{version}/%setup -q -n %{name}-%{version}\necho i am a mark/' packaging/sw-tools.spec
+perl -i -pne 's/%setup -q -n %\{name\}-%\{version\}/%setup -q -n %\{name\}-%\{version\}\necho i am a mark/' packaging/sw-tools.spec
 
 git add packaging/sw-tools.spec