mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-15 02:46:19 +02:00
Compare commits
1 Commits
a0ab546bd7
...
make-warni
Author | SHA1 | Date | |
---|---|---|---|
![]() |
287d2b4064 |
@@ -123,10 +123,9 @@ fi
|
|||||||
needsversioning=()
|
needsversioning=()
|
||||||
|
|
||||||
if [[ ! -e REUSE.toml || ! -e LICENSE || ! -d LICENSES ]]; then
|
if [[ ! -e REUSE.toml || ! -e LICENSE || ! -d LICENSES ]]; then
|
||||||
# TODO: Make this a hard failure in the future after packagers have had
|
error "package doesn't have proper licensing information, set it up using:"
|
||||||
# some time to add licenses to all packages.
|
|
||||||
warning "package doesn't have proper licensing information, set it up using:"
|
|
||||||
msg2 'pkgctl license setup'
|
msg2 'pkgctl license setup'
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
pkgctl license check
|
pkgctl license check
|
||||||
needsversioning+=(REUSE.toml LICENSE LICENSES/*)
|
needsversioning+=(REUSE.toml LICENSE LICENSES/*)
|
||||||
|
@@ -15,8 +15,8 @@ check_root() {
|
|||||||
local orig_argv=("$@")
|
local orig_argv=("$@")
|
||||||
|
|
||||||
(( EUID == 0 )) && return
|
(( EUID == 0 )) && return
|
||||||
if type -P run0 && type -P pkexec >/dev/null; then
|
if type -P sudo >/dev/null; then
|
||||||
exec run0 -- "${orig_argv[@]}"
|
exec sudo --preserve-env="${keepenv}" -- "${orig_argv[@]}"
|
||||||
else
|
else
|
||||||
exec su root -c "$(printf ' %q' "${orig_argv[@]}")"
|
exec su root -c "$(printf ' %q' "${orig_argv[@]}")"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user