diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh
index 82cf382..fe4e460 100755
--- a/tools/repo2solv.sh
+++ b/tools/repo2solv.sh
@@ -77,6 +77,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) gzip -dc "$i";;
*.bz2) bzip2 -dc "$i";;
+ *.lzma) lzmadec "$i";;
*) cat "$i";;
esac
# add a newline
@@ -89,6 +90,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) gzip -dc "$i";;
*.bz2) bzip2 -dc "$i";;
+ *.lzma) lzmadec "$i";;
*) cat "$i";;
esac
# only the first
@@ -107,6 +109,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) gzip -dc "$i" ;;
*.bz2) bzip2 -dc "$i" ;;
+ *.lzma) lzmadec "$i";;
*) cat "$i" ;;
esac
done
@@ -121,6 +124,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) cmd='gzip -dc' ;;
*.bz2) cmd='bzip2 -dc' ;;
+ *.lzma) cmd="lzmadec $i";;
*) cmd='cat' ;;
esac
break
@@ -138,6 +142,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) cmd="gzip -dc" ;;
*.bz2) cmd="bzip2 -dc" ;;
+ *.lzma) cmd="lzmadec $i";;
*) cmd="cat" ;;
esac
# only check the first repomd.xml*, in case there are more
@@ -158,6 +163,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) cmd="gzip -dc" ;;
*.bz2) cmd="bzip2 -dc" ;;
+ *.lzma) cmd="lzmadec";;
*) cmd="cat" ;;
esac
# only check the first suseinfo.xml*, in case there are more
@@ -177,6 +183,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) cmd="gzip -dc" ;;
*.bz2) cmd="bzip2 -dc" ;;
+ *.lzma) cmd="lzmadec";;
*) cmd="cat" ;;
esac
# only check the first updateinfo.xml*, in case there are more
@@ -196,6 +203,7 @@ if test "$repotype" = rpmmd ; then
case $i in
*.gz) cmd="gzip -dc" ;;
*.bz2) cmd="bzip2 -dc" ;;
+ *.lzma) cmd="lzmadec";;
*) cmd="cat" ;;
esac
# only check the first deltainfo.xml*, in case there are more