From: Michael Schroeder Date: Wed, 26 Mar 2014 14:31:42 +0000 (+0100) Subject: fix grep call X-Git-Tag: 0.6.4~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12d32d026c06aa6e5c416abfcb667d9cf71d39f;p=thirdparty%2Flibsolv.git fix grep call Unlike perl, grep parses '?' as literal question mark and '\?' as zero or one quantifier in the default "basic regexp" mode. --- diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index 25346a6c..4b595e8f 100755 --- a/tools/repo2solv.sh +++ b/tools/repo2solv.sh @@ -148,7 +148,7 @@ if test "$repotype" = rpmmd ; then repomd_decompress "$susedataxml" fi echo '' - ) | grep -v '\?xml' | sed '1i\' | rpmmd2solv $parser_options > $primfile || exit 4 + ) | grep -v '' | rpmmd2solv $parser_options > $primfile || exit 4 fi prodfile=