aur.sh: Add --no-custom switch

master
Taeyeon Mori 8 years ago
parent 33bcafe714
commit 5966900654
  1. 6
      bin/aur.sh

@ -63,6 +63,7 @@ EXCLUDE=
ASDEPS=true ASDEPS=true
NEEDED=true NEEDED=true
NOCONFIRM=true NOCONFIRM=true
USECUSTOM=true
add_makepkg_arg() { add_makepkg_arg() {
makepkg_args=("${makepkg_args[@]}" "$1") makepkg_args=("${makepkg_args[@]}" "$1")
@ -107,6 +108,8 @@ process_arg() {
ASK=true;; ASK=true;;
--aur-host|--exclude) # need more args --aur-host|--exclude) # need more args
_next_arg="$cx";; _next_arg="$cx";;
--no-custom)
USECUSTOM=false;;
-j|--threads) -j|--threads)
_next_arg=--threads;; _next_arg=--threads;;
-1) -1)
@ -151,6 +154,7 @@ process_arg() {
echo " -a, --ask Review changes before building packages" echo " -a, --ask Review changes before building packages"
echo " --exclude <pkgs>" echo " --exclude <pkgs>"
echo " Exclude packages from -u" echo " Exclude packages from -u"
echo " --no-custom Don't use custom packages from $CUSTOMDIR"
echo " --aur-host <url>" echo " --aur-host <url>"
echo " Use a different AUR server. default: https://aur.archlinux.org/" echo " Use a different AUR server. default: https://aur.archlinux.org/"
echo " --old-aur Use the old (non-git) AUR methods" echo " --old-aur Use the old (non-git) AUR methods"
@ -314,7 +318,7 @@ collect_package() {
return 0 return 0
fi fi
if [ -e "$CUSTOMDIR/$p" ]; then if $USECUSTOM && [ -e "$CUSTOMDIR/$p" ]; then
msg "[AUR] Found '$p' in '$CUSTOMDIR', Using that" msg "[AUR] Found '$p' in '$CUSTOMDIR', Using that"
cd "$CUSTOMDIR" cd "$CUSTOMDIR"
PKG_INFO[$p:From]="$CUSTOMDIR/$p" PKG_INFO[$p:From]="$CUSTOMDIR/$p"

Loading…
Cancel
Save