From a27ecf76ef3a191b1e08a7e2b370b9cd9f5025b5 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 15 Oct 2008 14:52:18 +0000 Subject: [PATCH] - add two missing test statements --- tools/repo2solv.sh | 2 ++ 1 file changed, 2 insertions(+) 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" ;; -- 2.7.4