add obsoletes option

This commit is contained in:
mollusk 2021-03-14 14:07:11 -04:00
parent 9f67a83aff
commit d699548ff9

11
repo.sh
View File

@ -145,6 +145,11 @@ add_pkg(){
xbps-rindex -a "${REPO_PATH}"/*.xbps xbps-rindex -a "${REPO_PATH}"/*.xbps
} }
remove_obsoletes(){
xbps-rindex -r "${REPO_PATH}"
xbps-rindex -c "${REPO_PATH}"
}
case "${1}" in case "${1}" in
-c | --create) -c | --create)
@ -166,12 +171,18 @@ case "${1}" in
load_conf load_conf
add_pkg add_pkg
sign_pkgs sign_pkgs
remove_obsoletes
;; ;;
-vp | --void-packages) -vp | --void-packages)
get_void_pkgs get_void_pkgs
;; ;;
-r | --remove-obsoletes)
load_conf
remove_obsoletes
;;
*) *)
help_file help_file
;; ;;