Skip to content

Commit f9eeb27

Browse files
committed
rename missleading parameter name
We only need to distinguish between the products. We do not call "osc"
1 parent c54226c commit f9eeb27

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

push.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# This script is called by push-packages-to-obs
88

9-
OSCAPI=$1
9+
PRODUCT=$1
1010
GIT_DIR=$2
1111
PKG_NAME=$3
1212

@@ -17,7 +17,10 @@ REMOTE_BRANCH=$(git for-each-ref --format='%(upstream:lstrip=-1)' $(git rev-pars
1717
COMMIT_ID=$(git rev-parse --short HEAD)
1818
popd
1919

20-
if [ "${OSCAPI}" == "https://api.suse.de" ]; then
20+
# convert legacy value
21+
test "${PRODUCT}" == "https://api.suse.de" && PRODUCT="MLM"
22+
23+
if [ "${PRODUCT}" == "MLM" ]; then
2124
VERSION="HEAD"
2225
case ${REMOTE_BRANCH} in Manager-*)
2326
VERSION="${REMOTE_BRANCH#Manager-}"

0 commit comments

Comments
 (0)