]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- depend on fixed poldek src info
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 16 Nov 2010 14:34:04 +0000 (14:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- workaround another poldek sillyness

Changed files:
    pear-autoup.sh -> 1.14

pear-autoup.sh

index 966fc2310af0ba88b4a95719927f7fd73a0f7439..bffb0ab0bcc6fabc832fcdfc1a1da557c508359a 100644 (file)
@@ -16,12 +16,7 @@ pear info PEAR >/dev/null
 # needed pkgs for upgrade test
 rpm -q php-packagexml2cl php-pear-PEAR_Command_Packaging
 
-[ -s pear.ls ] || { poldek --upa; poldek -q -Q --skip-installed --cmd 'ls php-pear-*' > pear.ls; }
-[ -s pear.desc ] || {
-       for pkg in $(cat pear.ls); do
-               poldek -q --skip-installed --cmd "desc $pkg"
-       done
-} > pear.desc
+[ -s pear.desc ] || { poldek --upa; poldek -q -Q --skip-installed --cmd 'desc php-pear-*' > pear.desc; }
 [ -s pear.pkgs ] || {
        awk '/^Source.package:/{print $3}' < pear.desc | sed -re 's,-[^-]+-[^-]+.src.rpm$,,' | sort -u > pear.pkgs
 
@@ -36,7 +31,13 @@ rpm -q php-packagexml2cl php-pear-PEAR_Command_Packaging
 
 [ -f pear.installed ] || {
        sudo poldek  --update --upa
+       # as sudo & poldek don't allow us to capture (no pipe or redirection work),
+       # we create markers which we could grab when invoked via "script"
+       echo "BEGIN INSTALL PACKAGES"
        sed -e 's,^,install ,' pear.pkgs | sudo poldek
+       echo "END INSTALL PACKAGES"
+       # rm -f pear.installed && script -c ./pear-autoup.sh pear.install.log
+       # sed -ne '/BEGIN INSTALL PACKAGES/,/END INSTALL PACKAGES/p' pear.install.log | grep -vE 'poldek:/.*install|: ambiguous name|equal version installed, skipped|Nothing to do' | less
        touch pear.installed
 }
 [ -s pear.upgrades ] || pear list-upgrades > pear.upgrades
This page took 0.098811 seconds and 4 git commands to generate.