packages: pear-autoup.sh - do_upgrade bool

glen glen at pld-linux.org
Sat Dec 10 17:17:46 CET 2011


Author: glen                         Date: Sat Dec 10 16:17:46 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- do_upgrade bool

---- Files affected:
packages:
   pear-autoup.sh (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: packages/pear-autoup.sh
diff -u packages/pear-autoup.sh:1.15 packages/pear-autoup.sh:1.16
--- packages/pear-autoup.sh:1.15	Sun Feb 27 13:47:16 2011
+++ packages/pear-autoup.sh	Sat Dec 10 17:17:40 2011
@@ -45,6 +45,10 @@
 subst=$(pear list-channels | awk -vORS="|" '/^[a-z]/{print $2}')
 subst="s/^php-(${subst%\|})-//"
 
+# clear it if you do not want to upgrade pkgs. i.e bring ac to sync
+do_upgrade=1
+#do_upgrade=
+
 for pkg in $(cat pear.pkgs); do
 	# check if there's update in channel
 	pearpkg=$(echo "$pkg" | sed -re "$subst")
@@ -56,7 +60,7 @@
 
 	# try upgrading with specified version
 	# pldnotify.awk uses "pear remote-info" which does not respect preferred package states
-	./builder -bb -u $pkg --upgrade-version $ver --define "_unpackaged_files_terminate_build 1" || {
+	./builder -bb $pkg ${do_upgrade:+-u --upgrade-version $ver} --define "_unpackaged_files_terminate_build 1" || {
 		cat >&2 <<-EOF
 
 		$pkg failed
================================================================

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



More information about the pld-cvs-commit mailing list