diff --git a/repo.sh b/repo.sh index 33aa0c9..5a9b73e 100755 --- a/repo.sh +++ b/repo.sh @@ -145,6 +145,11 @@ add_pkg(){ xbps-rindex -a "${REPO_PATH}"/*.xbps } +remove_obsoletes(){ + xbps-rindex -r "${REPO_PATH}" + xbps-rindex -c "${REPO_PATH}" +} + case "${1}" in -c | --create) @@ -166,12 +171,18 @@ case "${1}" in load_conf add_pkg sign_pkgs + remove_obsoletes ;; -vp | --void-packages) get_void_pkgs ;; + -r | --remove-obsoletes) + load_conf + remove_obsoletes + ;; + *) help_file ;;