diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-04-08 19:26:41 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-24 15:38:36 +0200 |
commit | 3f9cf8471f9c6faecba8e09deb97a8d042525307 (patch) | |
tree | f53931828fb4ecdbf383e5c2a590e1018403485e /scripts | |
parent | d85c71865ee826041c85cd47189ea43b44ce52cc (diff) | |
download | pacman-3f9cf8471f9c6faecba8e09deb97a8d042525307.tar.gz pacman-3f9cf8471f9c6faecba8e09deb97a8d042525307.tar.xz |
makepkg: allow specifying --pkg multiple times
Make this option additive, so that the following two operations are
equivalent:
makepkg --pkg foo --pkg bar
makepkg --pkg foo,bar
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 663fdc68..959c6b00 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1998,7 +1998,7 @@ while true; do --nosign) SIGNPKG='n' ;; -o|--nobuild) NOBUILD=1 ;; -p) shift; BUILDFILE=$1 ;; - --pkg) shift; IFS=, read -ra PKGLIST <<<"$1" ;; + --pkg) shift; IFS=, read -ra p <<<"$1"; PKGLIST+=("${p[@]}"); unset p ;; -r|--rmdeps) RMDEPS=1 ;; -R|--repackage) REPKG=1 ;; --skipchecksums) SKIPCHECKSUMS=1 ;; |