diff options
-rwxr-xr-x | tools/repo2solv.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index 4b595e8..215b1bc 100755 --- a/tools/repo2solv.sh +++ b/tools/repo2solv.sh @@ -148,7 +148,7 @@ if test "$repotype" = rpmmd ; then repomd_decompress "$susedataxml" fi echo '</rpmmd>' - ) | grep -v '<?xml' | sed '1i\<?xml version="1.0" encoding="UTF-8"?>' | rpmmd2solv $parser_options > $primfile || exit 4 + ) | sed 's/<?xml[^>]*>//' | sed '1i\<?xml version="1.0" encoding="UTF-8"?>' | rpmmd2solv $parser_options > $primfile || exit 4 fi prodfile= |