summaryrefslogtreecommitdiffstats
path: root/ch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-02 15:04:29 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-02 15:04:29 +0100
commit4aade2961d42ef00f4247e1fa91e5d0803c9ddb7 (patch)
treecfe46a818c2910f609a1af132ae98b2bcda13734 /ch
parentf9eff4f5a492c1745bc5bc700f5fd843e61ad128 (diff)
downloadbin-4aade2961d42ef00f4247e1fa91e5d0803c9ddb7.tar.gz
bin-4aade2961d42ef00f4247e1fa91e5d0803c9ddb7.tar.xz
ch: add repack support
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'ch')
-rwxr-xr-xch12
1 files changed, 9 insertions, 3 deletions
diff --git a/ch b/ch
index d7393b2..506f38c 100755
--- a/ch
+++ b/ch
@@ -98,9 +98,10 @@ chshell() {
}
chbuild() {
- __chrootalias "$1" || return
- linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f
- chshell "$1" "pacman --noconfirm -Rcs namcap"
+ chrootalias="$1"; shift
+ __chrootalias "$chrootalias" || return
+ linux${chroot_arch} sudo makechrootpkg -l "${copydir##*/}" -r "$chrootdir" -n -- -f "$@"
+ chshell "$chrootalias" "pacman --noconfirm -Rcs namcap"
}
chinstall() {
@@ -139,6 +140,11 @@ chupdate() {
command=$1; shift
case $command in
+ repack)
+ for arg; do
+ chbuild "$arg" -R
+ done
+ ;;
build)
for arg; do
chbuild "$arg"