packages: pear-autoup.sh - fix bootup

glen glen at pld-linux.org
Fri Aug 20 18:40:02 CEST 2010


Author: glen                         Date: Fri Aug 20 16:40:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix bootup

---- Files affected:
packages:
   pear-autoup.sh (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/pear-autoup.sh
diff -u packages/pear-autoup.sh:1.4 packages/pear-autoup.sh:1.5
--- packages/pear-autoup.sh:1.4	Fri Aug 20 14:43:53 2010
+++ packages/pear-autoup.sh	Fri Aug 20 18:39:56 2010
@@ -7,10 +7,10 @@
 
 set -e
 
-[ -f pear.ls ] || poldek -q --skip-installed --cmd 'ls php-pear-* | desc'
-[ -f pear.pkgs ] || awk '/^Source.package:/{print $3}' < pear.ls | sort -u | sed -re 's,-[^-]+-[^-]+.src.rpm$,,' > pear.pkgs
+[ -s pear.ls ] || poldek -q --skip-installed --cmd 'ls php-pear-* | desc' > pear.ls
+[ -s pear.pkgs ] || awk '/^Source.package:/{print $3}' < pear.ls | sort -u | sed -re 's,-[^-]+-[^-]+.src.rpm$,,' > pear.pkgs
 [ -f pear.installed ] || { sudo poldek  --update --upa; sed -e 's,^,install ,' pear.pkgs | sudo poldek; touch pear.installed; }
-[ -f pear.upgrades ] || pear list-upgrades > pear.upgrades
+[ -s pear.upgrades ] || pear list-upgrades > pear.upgrades
 
 # filter out tests, see https://bugs.launchpad.net/poldek/+bug/620362
 sed -i -e '/-tests/d' pear.pkgs
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pear-autoup.sh?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list