mirror of
https://codeberg.org/kiss-community/repo
synced 2025-03-27 16:22:46 -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() {
|
||||
pkg_info "$2"
|
||||
[ -n "${1#l*}" ] && pkg_info "$2"
|
||||
|
||||
case $1 in
|
||||
b*)
|
||||
@ -167,6 +167,20 @@ args() {
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user