From d699548ff9328c12c217803e75caef5fe6026a00 Mon Sep 17 00:00:00 2001 From: mollusk Date: Sun, 14 Mar 2021 14:07:11 -0400 Subject: [PATCH] add obsoletes option --- repo.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 ;;