From: Michael Schroeder Date: Thu, 15 May 2014 09:43:43 +0000 (+0200) Subject: use sed instead of grep to get rid of the line X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef56781c8f9e0ac5bce991bc62d87dde712e831;p=thirdparty%2Flibsolv.git use sed instead of grep to get rid of the line This allows us to parse files with no newlines. --- diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index 3f24e17e..6dbc0b22 100755 --- a/tools/repo2solv.sh +++ b/tools/repo2solv.sh @@ -130,7 +130,7 @@ if test "$repotype" = rpmmd ; then repomd_decompress "$susedataxml" fi echo '' - ) | grep -v '\?xml' | sed '1i\' | rpmmd2solv $parser_options > $primfile || exit 4 + ) | sed 's/]*>//g' | sed '1i\' | rpmmd2solv $parser_options > $primfile || exit 4 fi prodfile=