Author: kkaempf Date: Fri Feb 15 17:41:45 2008 New Revision: 8749 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8749&view=rev Log: Argh, can't code Bash properly Modified: trunk/sat-solver/tools/repo2solv.sh Modified: trunk/sat-solver/tools/repo2solv.sh URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/repo2solv.sh?rev=8749&r1=8748&r2=8749&view=diff ============================================================================== --- trunk/sat-solver/tools/repo2solv.sh (original) +++ trunk/sat-solver/tools/repo2solv.sh Fri Feb 15 17:41:45 2008 @@ -5,6 +5,8 @@ # tries to detect the repo type and generate one SOLV file on stdout LANG=C +parser_options=${PARSER_OPTIONS:-} + dir="$1" cd "$dir" || exit 1 @@ -25,7 +27,7 @@ if test -n "$cmd"; then # we have some primary.xml* primfile=`mktemp` || exit 3 - $cmd $i | rpmmd2solv $(PARSER_OPTIONS) > $primfile + $cmd $i | rpmmd2solv $parser_options > $primfile fi patchfile="/nonexist" @@ -41,7 +43,7 @@ esac done echo '</patches>' - ) | grep -v '\?xml' | patchxml2solv $(PARSER_OPTIONS) > $patchfile + ) | grep -v '\?xml' | patchxml2solv $parser_options > $patchfile fi # Now merge primary and patches @@ -89,6 +91,8 @@ esac done fi - ) | susetags2solv -c "${olddir}/content" $(PARSER_OPTIONS) + ) | susetags2solv -c "${olddir}/content" $parser_options cd "$olddir" +else + exit 1 fi -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org