--- tools/repo2solv.sh | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index 4af01e8..7d66e4f 100755 --- a/tools/repo2solv.sh +++ b/tools/repo2solv.sh @@ -48,6 +48,8 @@ repomd_decompress() { case $1 in *.gz) gzip -dc "$1" ;; *.bz2) bzip2 -dc "$1" ;; + *.lzma) lzma -dc "$1" ;; + *.xz) xz -dc "$1" ;; *) cat "$1" ;; esac } @@ -95,7 +97,12 @@ if test "$repotype" = rpmmd ; then cd repodata || exit 2 primfile= - primxml=`repomd_findfile primary primary.xml` + if type lzma >/dev/null 2>&1; then + primxml=`repomd_findfile primary_lzma primary.xml` + fi + if test -z "$primxml"; then + primxml=`repomd_findfile primary primary.xml` + fi if test -n "$primxml" -a -s "$primxml" ; then primfile=`mktemp` || exit 3 ( -- 1.7.0.3 -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org