summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bashrc-fedora3
1 files changed, 2 insertions, 1 deletions
diff --git a/.bashrc-fedora b/.bashrc-fedora
index ca9d9da..dea1377 100644
--- a/.bashrc-fedora
+++ b/.bashrc-fedora
@@ -3,7 +3,8 @@
alias gkoji="cd ~/wrkspc/gkoji"
whichpkg() {
- rpm -qf "$(which "$1")"
+ local found=$(which "$1")
+ [ -n "${found}" ] && rpm -qf "${found}" || { echo; repoquery -f "*/$1";}
}
# see https://bugzilla.redhat.com/show_bug.cgi?id=852197