File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,15 @@ wget -nv -O $tmp "${patch_url}/${COMPONENT}-source.patch" ||
9898wget -nv -O $tmp " ${patch_url} /dag_build/${COMPONENT} -source.patch"
9999
100100git apply -p1 -C0 $tmp || git apply -3 -p1 -C0 $tmp
101- if [[ " $build " < " 7.2.1" && " $VERSION " != " 7.0.2.1" ]]; then
102- sed -i " s/pig.version>0.16.0.*</pig.version>0.16.0.${build} </" pom.xml
103- else
104- sed -i " s/pig.version>0.16.0.*</pig.version>0.16.0</" pom.xml
101+
102+ if test -f " pom.xml" ; then
103+ echo " found pom.xml, trying to patch pig version"
104+ if [[ " $build " < " 7.2.1" && " $VERSION " != " 7.0.2.1" ]]; then
105+ sed -i " s/pig.version>0.16.0.*</pig.version>0.16.0.${build} </" pom.xml
106+ else
107+ sed -i " s/pig.version>0.16.0.*</pig.version>0.16.0</" pom.xml
108+ fi
105109fi
106110
111+
107112echo " @@@ patched"
You can’t perform that action at this time.
0 commit comments