aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS.rst12
-rw-r--r--data/share/bash-completion/completions/pquery11
2 files changed, 18 insertions, 5 deletions
diff --git a/NEWS.rst b/NEWS.rst
index 38b4955e3..b9b1caa51 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -3,6 +3,18 @@ Release Notes
=============
----------------------------
+pkgcore 0.12.28 (2024-09-06)
+----------------------------
+
+- ebuild.profiles: fix case where a parent path omits the repository identifier
+ (James Le Cuirot, #435)
+
+- bash completion: improve path handling for pquery (Arthur Zamarin)
+
+- bash completion: suppress error message outside git repository (Koichi Murase
+ #436)
+
+----------------------------
pkgcore 0.12.27 (2024-03-27)
----------------------------
diff --git a/data/share/bash-completion/completions/pquery b/data/share/bash-completion/completions/pquery
index eedb9a1bb..83c07a556 100644
--- a/data/share/bash-completion/completions/pquery
+++ b/data/share/bash-completion/completions/pquery
@@ -90,7 +90,7 @@ _pquery() {
)
# find repo location
- local REPO="$(git rev-parse --show-toplevel)"
+ local REPO="$(git rev-parse --show-toplevel 2>/dev/null)"
for ((i = 1; i < ${COMP_CWORD}; i++)); do
case "${COMP_WORDS[i]}" in
-r | --repo)
@@ -105,7 +105,7 @@ _pquery() {
COMPREPLY=($(compgen -W "${boolean_options[*]}" -- "${cur}"))
;;
--config)
- COMPREPLY=($(compgen -f -- "${cur}"))
+ _filedir
;;
--domain)
COMPREPLY=()
@@ -128,8 +128,9 @@ _pquery() {
fi
;;
-r | --repo)
- COMPREPLY=($(compgen -W "$(_parsereposconf -l)" -- "${cur}"))
- COMPREPLY+=($(compgen -d -- "${cur}"))
+ _filedir -d
+ COMPREPLY+=($(compgen -W "$(_parsereposconf -l)" -- "${cur}"))
+ # COMPREPLY+=($(compgen -d -- "${cur}"))
;;
--highlight-dep | --print-revdep)
COMPREPLY=()
@@ -145,7 +146,7 @@ _pquery() {
COMPREPLY+=($(compgen -W "${base_options[*]}" -- "${cur}"))
else
_list_repo_atoms() {
- eval cd "${REPO}" || return
+ eval cd "${REPO}" 2>/dev/null || return
if [[ $cur == */* ]]; then
compgen -W "$(compgen -G "${cur}*" )" -- "${cur}"
else