- add two missing test statements
authorMichael Schroeder <mls@suse.de>
Wed, 15 Oct 2008 14:52:18 +0000 (14:52 +0000)
committerMichael Schroeder <mls@suse.de>
Wed, 15 Oct 2008 14:52:18 +0000 (14:52 +0000)
tools/repo2solv.sh

index 3ef0c1f..aec9948 100755 (executable)
@@ -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" ;;