From: Ludwig Nussel Date: Thu, 21 Feb 2008 13:25:13 +0000 (+0000) Subject: only set default repo if not using RPMLIST mode X-Git-Tag: obs_2.0~426 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94806d5efec034d45d6587ee48577e795870a1b6;p=tools%2Fobs-build.git only set default repo if not using RPMLIST mode --- diff --git a/build b/build index d00872d..dfd6285 100755 --- a/build +++ b/build @@ -513,8 +513,17 @@ test -z "$LIST_STATE" -a "$UID" != 0 && { cleanup_and_exit 1 } -repos=("${repos[@]}" ${BUILD_RPMS//:/ /}) -: ${repos:=("--repository" "/media/dvd/suse")} +if [ -z "$RPMLIST" ]; then + for i in ${BUILD_RPMS//:/ /}; do + repos[${#repos[@]}]='--repository'; + repos[${#repos[@]}]="$i"; + done + if [ -z "$repos" ]; then + repos=("--repository" "/media/dvd/suse") + fi +else + repos=() +fi if test -n "$KILL" ; then test -z "$SRCDIR" || usage