mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 21:38:19 -05:00
makepkg: remove deprecated --usesudo code
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
4979157cba
commit
f827c9572e
@ -1144,11 +1144,11 @@ SRCDEST=${_SRCDEST:-$SRCDEST}
|
|||||||
SRCDEST=${SRCDEST:-$startdir} #default to $startdir if undefined
|
SRCDEST=${SRCDEST:-$startdir} #default to $startdir if undefined
|
||||||
|
|
||||||
# Parse Command Line Options.
|
# Parse Command Line Options.
|
||||||
OPT_SHORT="AbcCdefFghiLmop:rRsSV"
|
OPT_SHORT="AbcCdefFghiLmop:rRsV"
|
||||||
OPT_LONG="allsource,asroot,ignorearch,builddeps,clean,cleancache,nodeps"
|
OPT_LONG="allsource,asroot,ignorearch,builddeps,clean,cleancache,nodeps"
|
||||||
OPT_LONG="$OPT_LONG,noextract,force,forcever:,geninteg,help,holdver"
|
OPT_LONG="$OPT_LONG,noextract,force,forcever:,geninteg,help,holdver"
|
||||||
OPT_LONG="$OPT_LONG,install,log,nocolor,nobuild,rmdeps,repackage,source"
|
OPT_LONG="$OPT_LONG,install,log,nocolor,nobuild,rmdeps,repackage,source"
|
||||||
OPT_LONG="$OPT_LONG,syncdeps,usesudo,version"
|
OPT_LONG="$OPT_LONG,syncdeps,version"
|
||||||
# Pacman Options
|
# Pacman Options
|
||||||
OPT_LONG="$OPT_LONG,noconfirm,noprogressbar"
|
OPT_LONG="$OPT_LONG,noconfirm,noprogressbar"
|
||||||
OPT_TEMP="$(getopt -o "$OPT_SHORT" -l "$OPT_LONG" -n "$(basename "$0")" -- "$@" || echo 'GETOPT GO BANG!')"
|
OPT_TEMP="$(getopt -o "$OPT_SHORT" -l "$OPT_LONG" -n "$(basename "$0")" -- "$@" || echo 'GETOPT GO BANG!')"
|
||||||
@ -1189,11 +1189,6 @@ while true; do
|
|||||||
--source) SOURCEONLY=1 ;;
|
--source) SOURCEONLY=1 ;;
|
||||||
-s|--syncdeps) DEP_BIN=1 ;;
|
-s|--syncdeps) DEP_BIN=1 ;;
|
||||||
|
|
||||||
# BEGIN DEPRECATED
|
|
||||||
-S|--usesudo)
|
|
||||||
warning "$(gettext "Sudo is used by default now. The --usesudo option is deprecated!")" ;;
|
|
||||||
# END DEPRECATED
|
|
||||||
|
|
||||||
-h|--help) usage; exit 0 ;; # E_OK
|
-h|--help) usage; exit 0 ;; # E_OK
|
||||||
-V|--version) version; exit 0 ;; # E_OK
|
-V|--version) version; exit 0 ;; # E_OK
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user