From: Michael Schroeder Date: Wed, 14 May 2014 13:50:11 +0000 (+0200) Subject: use sed instead of grep to get rid of the line X-Git-Tag: 0.6.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982625a0b9d4b97a8074bac320c23471e1cfb1b9;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 4b595e8f..215b1bc1 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 '' | rpmmd2solv $parser_options > $primfile || exit 4 + ) | sed 's/]*>//' | sed '1i\' | rpmmd2solv $parser_options > $primfile || exit 4 fi prodfile=