forked from kiss-community/kiss
misc: fix false positives
This commit is contained in:
parent
b1faf0ce70
commit
9253c6646b
9
kiss
9
kiss
@ -675,6 +675,9 @@ pkg_build() {
|
|||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
if ! contains "$explicit_build" "$pkg" && pkg_cache "$pkg"; then
|
if ! contains "$explicit_build" "$pkg" && pkg_cache "$pkg"; then
|
||||||
log "$pkg" "Found pre-built binary, installing"
|
log "$pkg" "Found pre-built binary, installing"
|
||||||
|
|
||||||
|
# Intended behavior.
|
||||||
|
# shellcheck disable=2030,2031
|
||||||
(export KISS_FORCE=1; args i "$tar_file")
|
(export KISS_FORCE=1; args i "$tar_file")
|
||||||
else
|
else
|
||||||
set -- "$@" "$pkg"
|
set -- "$@" "$pkg"
|
||||||
@ -750,6 +753,9 @@ pkg_build() {
|
|||||||
|
|
||||||
if [ "$pkg_update" ] || ! contains "$explicit" "$pkg"; then
|
if [ "$pkg_update" ] || ! contains "$explicit" "$pkg"; then
|
||||||
log "$pkg" "Needed as a dependency or has an update, installing"
|
log "$pkg" "Needed as a dependency or has an update, installing"
|
||||||
|
|
||||||
|
# Intended behavior.
|
||||||
|
# shellcheck disable=2030,2031
|
||||||
(export KISS_FORCE=1; args i "$pkg")
|
(export KISS_FORCE=1; args i "$pkg")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -1145,6 +1151,9 @@ pkg_removable() {
|
|||||||
# Check if a package is removable and die if it is not.
|
# Check if a package is removable and die if it is not.
|
||||||
# A package is removable when it has no dependents or
|
# A package is removable when it has no dependents or
|
||||||
# when KISS_FORCE is set to 1.
|
# when KISS_FORCE is set to 1.
|
||||||
|
|
||||||
|
# Intended behavior.
|
||||||
|
# shellcheck disable=2030,2031
|
||||||
case ${KISS_FORCE:=0} in 0)
|
case ${KISS_FORCE:=0} in 0)
|
||||||
log "$1" "Checking if package removable"
|
log "$1" "Checking if package removable"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user