forked from kiss-community/repo
puke: Fix bug
This commit is contained in:
parent
7be31bc7a9
commit
647ace077e
14
puke
14
puke
@ -164,6 +164,7 @@ pkg_list() {
|
|||||||
[ "$1" ] && { [ -d "$sys_dir/$dbs_dir/$1" ]; return "$?"; }
|
[ "$1" ] && { [ -d "$sys_dir/$dbs_dir/$1" ]; return "$?"; }
|
||||||
|
|
||||||
for item in "$sys_dir/$dbs_dir/"*; do
|
for item in "$sys_dir/$dbs_dir/"*; do
|
||||||
|
[ -d "$item" ] || continue
|
||||||
read -r version release < "$item/version"
|
read -r version release < "$item/version"
|
||||||
printf '%s\n' "${item##*/} $version-$release"
|
printf '%s\n' "${item##*/} $version-$release"
|
||||||
done
|
done
|
||||||
@ -172,8 +173,7 @@ pkg_list() {
|
|||||||
args() {
|
args() {
|
||||||
case $1 in b*|c*|d*|i*|r*) pkg_setup "${2-null}"; esac
|
case $1 in b*|c*|d*|i*|r*) pkg_setup "${2-null}"; esac
|
||||||
case $1 in
|
case $1 in
|
||||||
b*)
|
b*) [ -f checksums ] || die "Checksums missing, run '$0 checksum $name'"
|
||||||
[ -f checksums ] || die "Checksums missing, run '$0 checksum $name'"
|
|
||||||
|
|
||||||
pkg_depends
|
pkg_depends
|
||||||
pkg_sources
|
pkg_sources
|
||||||
@ -181,15 +181,11 @@ args() {
|
|||||||
pkg_extract
|
pkg_extract
|
||||||
pkg_build
|
pkg_build
|
||||||
pkg_manifest
|
pkg_manifest
|
||||||
pkg_tar
|
pkg_tar ;;
|
||||||
;;
|
|
||||||
|
|
||||||
c*)
|
c*) pkg_sources
|
||||||
pkg_sources
|
|
||||||
pkg_checksum
|
pkg_checksum
|
||||||
|
log "Generated checksums." ;;
|
||||||
log "Generated checksums."
|
|
||||||
;;
|
|
||||||
|
|
||||||
d*) [ -f depends ] && cat depends ;;
|
d*) [ -f depends ] && cat depends ;;
|
||||||
i*) pkg_install ;;
|
i*) pkg_install ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user