From: Dirk Mueller Date: Sat, 13 Nov 2010 09:26:40 +0000 (+0100) Subject: if susedata doesn't exist, don't try to use it X-Git-Tag: BASE-SuSE-Code-12_1-Branch~157^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d7595d8bf0a63d6ec927793120d97c671e97193;p=thirdparty%2Flibsolv.git if susedata doesn't exist, don't try to use it --- diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index e07755ed..518f7001 100755 --- a/tools/repo2solv.sh +++ b/tools/repo2solv.sh @@ -124,8 +124,8 @@ if test "$repotype" = rpmmd ; then echo fi susedataxml=`repomd_findfile susedata susedata.xml` - if test -f $susedataxml ; then - repomd_decompress $susedataxml + if test -f "$susedataxml" ; then + repomd_decompress "$susedataxml" fi echo '' ) | grep -v '\?xml' | sed '1i\' | rpmmd2solv $parser_options > $primfile || exit 4