packages: pear-autoup.sh - filter pkgs list before installing

glen glen at pld-linux.org
Sun Aug 22 11:34:05 CEST 2010


Author: glen                         Date: Sun Aug 22 09:34:05 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- filter pkgs list before installing

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

---- Diffs:

================================================================
Index: packages/pear-autoup.sh
diff -u packages/pear-autoup.sh:1.5 packages/pear-autoup.sh:1.6
--- packages/pear-autoup.sh:1.5	Fri Aug 20 18:39:56 2010
+++ packages/pear-autoup.sh	Sun Aug 22 11:34:00 2010
@@ -8,17 +8,20 @@
 set -e
 
 [ -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
+[ -s pear.pkgs ] || {
+	awk '/^Source.package:/{print $3}' < pear.ls | sort -u | sed -re 's,-[^-]+-[^-]+.src.rpm$,,' > pear.pkgs
+
+	# filter out tests, see https://bugs.launchpad.net/poldek/+bug/620362
+	sed -i -e '/-tests/d' pear.pkgs
+	# more packages affected
+	sed -i -e '/php-pear-Auth_Container_ADOdb/d' pear.pkgs
+	sed -i -e '/php-pear-DB_DataObject-cli/d' pear.pkgs
+	# not pear pkg
+	sed -i -e '/^php-pear$/d' pear.pkgs
+}
+
 [ -f pear.installed ] || { sudo poldek  --update --upa; sed -e 's,^,install ,' pear.pkgs | sudo poldek; touch pear.installed; }
 [ -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
-# more packages affected
-sed -i -e '/php-pear-Auth_Container_ADOdb/d' pear.pkgs
-sed -i -e '/php-pear-DB_DataObject-cli/d' pear.pkgs
-# not pear pkg
-sed -i -e '/^php-pear$/d' pear.pkgs
 
 # test that php is working
 php -r 'echo "ok\n";'
================================================================

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



More information about the pld-cvs-commit mailing list