FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 04-12-2012, 02:54 PM
Dave Reisner
 
Default 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
---
doc/makepkg.8.txt | 2 +-
scripts/makepkg.sh.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/makepkg.8.txt b/doc/makepkg.8.txt
index f80d7f2..57af98f 100644
--- a/doc/makepkg.8.txt
+++ b/doc/makepkg.8.txt
@@ -154,7 +154,7 @@ Options

*--pkg <list>*::
Only build listed packages from a split package. Multiple packages should
- be comma separated in the list.
+ be comma separated in the list. This option can be specified multiple times.

*--check*::
Run the check() function in the PKGBUILD, overriding the setting in
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 4e3b0e3..d2510c1 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1997,7 +1997,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 ;;
--
1.7.10
 

Thread Tools




All times are GMT. The time now is 02:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org