From 982625a0b9d4b97a8074bac320c23471e1cfb1b9 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 14 May 2014 15:50:11 +0200 Subject: [PATCH] use sed instead of grep to get rid of the line This allows us to parse files with no newlines. --- tools/repo2solv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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= -- 2.47.2