X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=blobdiff_plain;f=pear-autoup.sh;h=d2b7c8deb2a8f3301aa82fd970472c26a8053c1c;hp=fa185307acf7fab1d3054f4d369f5b8a1dd5ec0d;hb=0e6168a9024e6603e06f0c462b8594099b372739;hpb=4d58f3eb424be0f3b91d0fe7afee41c90b80c19e diff --git a/pear-autoup.sh b/pear-autoup.sh index fa18530..d2b7c8d 100644 --- a/pear-autoup.sh +++ b/pear-autoup.sh @@ -9,7 +9,7 @@ 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 + awk '/^Source.package:/{print $3}' < pear.ls | sed -re 's,-[^-]+-[^-]+.src.rpm$,,' | sort -u > pear.pkgs # filter out tests, see https://bugs.launchpad.net/poldek/+bug/620362 sed -i -e '/-tests/d' pear.pkgs @@ -20,7 +20,11 @@ set -e 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; } +[ -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 # test that php is working