From a12d32d026c06aa6e5c416abfcb667d9cf71d39f Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 26 Mar 2014 15:31:42 +0100 Subject: [PATCH] fix grep call Unlike perl, grep parses '?' as literal question mark and '\?' as zero or one quantifier in the default "basic regexp" mode. --- tools/repo2solv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index 25346a6..4b595e8 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= -- 2.7.4