From: Michael Schroeder Date: Wed, 15 Oct 2008 14:52:18 +0000 (+0000) Subject: - add two missing test statements X-Git-Tag: BASE-SuSE-Code-12_1-Branch~449 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a27ecf76ef3a191b1e08a7e2b370b9cd9f5025b5;p=platform%2Fupstream%2Flibsolv.git - add two missing test statements --- diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh index 3ef0c1f..aec9948 100755 --- a/tools/repo2solv.sh +++ b/tools/repo2solv.sh @@ -143,6 +143,7 @@ if test -d repodata ; then # This contains a updateinfo.xml* and maybe patches cmd= for i in updateinfo.xml*; do + test -s "$i" || continue case $i in *.gz) cmd="gzip -dc" ;; *.bz2) cmd="bzip2 -dc" ;; @@ -177,6 +178,7 @@ if test -d repodata ; then # This contains a deltainfo.xml* cmd= for i in deltainfo.xml*; do + test -s "$i" || continue case $i in *.gz) cmd="gzip -dc" ;; *.bz2) cmd="bzip2 -dc" ;;