forked from kiss-community/repo
puke: Make depends optional
This commit is contained in:
parent
8ed347d8f3
commit
21cbd5b156
3
puke
3
puke
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user