Skip to content

Commit

Permalink
Update package-orchestrator.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Jul 12, 2021
1 parent 16b2944 commit 8b9b4e3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions package-orchestrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ source $BASE/get_version_string.sh
string=$(get_rpm_version_string)
VERSION_VALUE=${string% *}
RELEASE_VALUE=${string#* }
PYTHON27_VALUE=0
PYTHON3_VALUE=0

args=("$@")
ELEMENTS=${#args[@]}
Expand All @@ -49,12 +47,6 @@ for (( i=0;i<$ELEMENTS;i++)); do
if [ "$arg" == "--with-release" ]; then
RELEASE_VALUE=${args[${i}+1]}
fi
if [ "$arg" == "--with-python27" ]; then
PYTHON27_VALUE=1
fi
if [ "$arg" == "--with-python3" ]; then
PYTHON3_VALUE=1
fi
done


Expand All @@ -67,7 +59,5 @@ rpmbuild -bb orchestrator.spec \
--define "_topdir $RPM_DIR" \
--define "_root $BASE"\
--define "_project_user $ORCHESTRATOR_USER"\
--define "with_python27 $PYTHON27_VALUE"\
--define "with_python3 $PYTHON3_VALUE"\
--define "_version $VERSION_VALUE"\
--define "_release $RELEASE_VALUE"

0 comments on commit 8b9b4e3

Please sign in to comment.