kiss: clean up
This commit is contained in:
parent
61b1832c51
commit
04eee58366
5
kiss
5
kiss
|
@ -27,7 +27,6 @@ log() {
|
||||||
contains() {
|
contains() {
|
||||||
# Check if a "string list" contains a word.
|
# Check if a "string list" contains a word.
|
||||||
case " $1 " in *" $2 "*) return 0; esac
|
case " $1 " in *" $2 "*) return 0; esac
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -617,7 +616,7 @@ pkg_install() {
|
||||||
|
|
||||||
else
|
else
|
||||||
# Read the version information to name the package.
|
# Read the version information to name the package.
|
||||||
read -r version release < "$(pkg_find "$1")/version"
|
read -r version release 2>/dev/null < "$(pkg_find "$1")/version"
|
||||||
|
|
||||||
# Construct the name of the package tarball.
|
# Construct the name of the package tarball.
|
||||||
tar_name=$1\#$version-$release.tar.gz
|
tar_name=$1\#$version-$release.tar.gz
|
||||||
|
@ -909,7 +908,7 @@ args() {
|
||||||
for pkg; do
|
for pkg; do
|
||||||
case $pkg in
|
case $pkg in
|
||||||
*.tar.gz) deps="$deps $pkg " ;;
|
*.tar.gz) deps="$deps $pkg " ;;
|
||||||
*) pkg_depends "$pkg"
|
*) pkg_depends "$pkg" 2>/dev/null
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue