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

puke: cleanup

This commit is contained in:
Dylan Araps 2019-05-13 15:31:38 +03:00
parent e1277b6de9
commit 5f1cd7924d

3
puke
View File

@ -24,7 +24,6 @@ source_type() {
}
pkg_setup() {
[ -z "$1" ] && die "No package specified."
cd "$rep_dir/$1" || die "Package '$1' not in repository."
[ -f version ] || die "Version file not found."
[ -f sources ] || die "Sources file not found."
@ -194,7 +193,7 @@ pkg_list() {
}
args() {
case $1 in b*|c*|d*|i*|r*) pkg_setup "$2"; esac
case $1 in b*|c*|d*|i*|r*) pkg_setup "${2-null}"; esac
case $1 in
b*)
[ -f checksums ] || die "Checksums missing, run '$0 checksum $name'"