From 20d3c8e798085493f6f08a41f3793e29c56e5b54 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 25 Sep 2026 11:56:21 +0200 Subject: feat: add --strip-version/-S and --versions -S removes VERSION, DOWNLOAD and MD5SUM (plus arch-suffixed variants) from hint files so slackrepo falls back to the repository's current version, keeping every other modification. --check now skips hints with no VERSION line instead of hitting the empty-pattern sed path. --versions compares the SBo .info, newest built package, hint and nvchecker upstream versions for one or more packages, coloured like --list. Co-Authored-By: Claude Opus 5.5 --- mkhint.bash-completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mkhint.bash-completion') diff --git a/mkhint.bash-completion b/mkhint.bash-completion index c7c4a14..22c8df9 100644 --- a/mkhint.bash-completion +++ b/mkhint.bash-completion @@ -14,7 +14,7 @@ _mkhintfile_completions() { hint_dir="${HINT_DIR:-$hint_dir}" repo_dir="${repo_dir%/}"; hint_dir="${hint_dir%/}" - local all_flags="--version -v --set-version -V --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --delete -d --no-dl -N --info -i --force --help -h" + local all_flags="--version -v --set-version -V --hintfile -f --new -n --list -l --review -R --clean -c --check -C --fix-current -F --strip-version -S --versions --delete -d --no-dl -N --info -i --force --help -h" # -R/--review and -l/--list take any number of hint names; complete them repeatedly. local w in_review="" @@ -31,7 +31,7 @@ _mkhintfile_completions() { fi case "$prev" in - --new|-n|--info|-i) + --new|-n|--info|-i|--versions) # Packages live at REPO_DIR///; complete the pkg dir # names. Strip the trailing slash and category prefix with param # expansion (no per-dir basename fork — the repo has thousands). @@ -41,7 +41,7 @@ _mkhintfile_completions() { done COMPREPLY=($(compgen -W "${words[*]}" -- "$cur")) ;; - --hintfile|-f|--delete|-d|--check|-C) + --hintfile|-f|--delete|-d|--check|-C|--strip-version|-S) local -a words=() for f in "$hint_dir"/*.hint; do [[ -f "$f" ]] && words+=("$(basename "${f%.hint}")") -- cgit v1.2.3