pkg/query
This commit is contained in:
parent
a2d668f740
commit
1a5dcbf4d1
1 changed files with 11 additions and 11 deletions
|
@ -870,17 +870,6 @@ spcd_python_pip() {
|
|||
fi
|
||||
}
|
||||
|
||||
spcd_query_package() {
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") apk info "${1}" ;;
|
||||
"${SPCD_PM_APT}") dpkg-query --show "${1}" ;;
|
||||
"${SPCD_PM_DNF}") rpm --query "${1}" ;;
|
||||
"${SPCD_PM_PACMAN}") pacman --query "${1}" ;;
|
||||
"${SPCD_PM_ZYPPER}") rpm --query "${1}" ;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
spcd_txt_locale() {
|
||||
local action="${1}"
|
||||
local chosen="${2}"
|
||||
|
@ -1038,6 +1027,17 @@ ${name}.${_SPCD_TXT_CHARSET} ${_SPCD_TXT_CHARSET}
|
|||
# │ e │ packages │
|
||||
# ╰───┴──────────╯
|
||||
|
||||
spcd_query_package() {
|
||||
case "${SPCD_PM}" in
|
||||
"${SPCD_PM_APK}") apk info "${1}" ;;
|
||||
"${SPCD_PM_APT}") dpkg-query --show "${1}" ;;
|
||||
"${SPCD_PM_DNF}") rpm --query "${1}" ;;
|
||||
"${SPCD_PM_PACMAN}") pacman --query "${1}" ;;
|
||||
"${SPCD_PM_ZYPPER}") rpm --query "${1}" ;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
||||
|
||||
# ╭───┬─────╮
|
||||
# │ s │ dns │
|
||||
# ╰───┴─────╯
|
||||
|
|
Loading…
Reference in a new issue