From c4b485bca7df7e7b63ddeca25ed7d854aab59ef2 Mon Sep 17 00:00:00 2001 From: Erick Cafferata Date: Sat, 19 Jan 2019 15:51:04 -0500 Subject: add upstream option - add -u option. This makes asp32 behave as upstream's asp (skips arch32 patching) --- asp32.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/asp32.in b/asp32.in index e467a3e..6b384cc 100644 --- a/asp32.in +++ b/asp32.in @@ -5,6 +5,7 @@ ARCH_GIT_REPOS=(packages64 community64 packages32) OPT_ARCH=$(uname -m) OPT_FORCE=0 +OPT_UPSTREAM=0 : "${ASPROOT:=${XDG_CACHE_HOME:-$HOME/.cache}/asp32}" : "${ASPCACHE:=$ASPROOT/cache}" @@ -23,6 +24,7 @@ Options: -a ARCH Specify an architecture other than the host's -f Allow files to be overwritten -h Show this help + -u Behave as upstream asp -V Show package version Package Commands: @@ -346,7 +348,7 @@ dispatch_action() { initialize || log_fatal 'failed to initialize asp repository in %s' "$ASPROOT" -while getopts ':a:fhV' flag; do +while getopts ':a:fhuV' flag; do case $flag in a) OPT_ARCH=$OPTARG @@ -358,6 +360,9 @@ while getopts ':a:fhV' flag; do usage exit 0 ;; + u) + OPT_UPSTREAM=1 + ;; V) version exit 0 -- cgit v1.2.3-54-g00ecf