]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- check tools early (php, pear)
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 15 Nov 2010 14:52:11 +0000 (14:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pear-autoup.sh -> 1.11

pear-autoup.sh

index 148963159a3969c6e23bd41b448d7cf1a9b6da1f..801dfa38fb165f3391a9cd6a1c193576b08090ef 100644 (file)
@@ -7,7 +7,13 @@
 
 set -e
 
-[ -s pear.ls ] || poldek -q -Q --skip-installed --cmd 'ls php-pear-*' > pear.ls
+# test that php is working
+php -r 'echo "PHP is working OK\n";'
+
+# test that pear is working
+pear info PEAR >/dev/null
+
+[ -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"
@@ -32,9 +38,6 @@ set -e
 }
 [ -s pear.upgrades ] || pear list-upgrades > pear.upgrades
 
-# test that php is working
-php -r 'echo "PHP is working OK\n";'
-
 for pkg in $(cat pear.pkgs); do
        # check if there's update in channel
        pearpkg=${pkg#php-pear-}
This page took 0.041654 seconds and 4 git commands to generate.