2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

puke: Make depends optional

This commit is contained in:
Dylan Araps 2019-05-09 17:41:55 +03:00
parent 8ed347d8f3
commit 21cbd5b156
3 changed files with 1 additions and 2 deletions

3
puke
View File

@ -23,7 +23,6 @@ pkg_info() {
[ -z "$1" ] && die "No package specified."
cd "./repo/$1" || die "Package '$1' not in repository."
[ -f version ] || die "Version file not found."
[ -f depends ] || die "Depends file not found."
[ -f sources ] || die "Sources file not found."
read -r version release < version
@ -32,7 +31,7 @@ pkg_info() {
}
pkg_depends() {
while read -r dependency; do
[ -f depends ] && while read -r dependency; do
# TODO: Handle dependencies.
log "Found dependency $dependency"
done < depends

View File