From 4aade2961d42ef00f4247e1fa91e5d0803c9ddb7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 2 Feb 2013 15:04:29 +0100 Subject: ch: add repack support Signed-off-by: Florian Pritz --- ch | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ch') 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" -- cgit v1.2.3-24-g4f1b