mirror of
https://codeberg.org/kiss-community/repo
synced 2025-04-01 10:42:52 -06:00
puke: Install and List packages.
This commit is contained in:
parent
fa59d50d6a
commit
132592749d
16
puke
16
puke
@ -146,7 +146,7 @@ pkg_tar() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
args() {
|
args() {
|
||||||
pkg_info "$2"
|
[ -n "${1#l*}" ] && pkg_info "$2"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
b*)
|
b*)
|
||||||
@ -167,6 +167,20 @@ args() {
|
|||||||
|
|
||||||
log "Generated checksums."
|
log "Generated checksums."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
i*)
|
||||||
|
tar pxvf "$bin_dir/$pkg.tar.gz" -C "$sys_dir/" ||
|
||||||
|
die "Failed to install $pkg"
|
||||||
|
|
||||||
|
log "Installed $pkg"
|
||||||
|
;;
|
||||||
|
|
||||||
|
l*)
|
||||||
|
for pkg in "$sys_dir/var/db/puke/"*; do
|
||||||
|
read -r version release < "$pkg/version"
|
||||||
|
log "${pkg##*/} $version-$release"
|
||||||
|
done
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user