]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - pear-autoup.sh
- sort final list
[packages/rpm-build-tools.git] / pear-autoup.sh
index fa185307acf7fab1d3054f4d369f5b8a1dd5ec0d..d2b7c8deb2a8f3301aa82fd970472c26a8053c1c 100644 (file)
@@ -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
This page took 0.028863 seconds and 4 git commands to generate.