mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
parent
e71b75e0e4
commit
d855725965
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
function __dnf_list_installed_packages
|
function __dnf_list_installed_packages
|
||||||
dnf repoquery --cacheonly "$cur*" --qf "%{NAME}" --installed </dev/null
|
dnf repoquery --cacheonly "$cur*" --qf "%{name}" --installed </dev/null
|
||||||
end
|
end
|
||||||
|
|
||||||
function __dnf_list_available_packages
|
function __dnf_list_available_packages
|
||||||
|
@ -26,7 +26,7 @@ function __dnf_list_available_packages
|
||||||
else
|
else
|
||||||
# In some cases dnf will ask for input (e.g. to accept gpg keys).
|
# In some cases dnf will ask for input (e.g. to accept gpg keys).
|
||||||
# Connect it to /dev/null to try to stop it.
|
# Connect it to /dev/null to try to stop it.
|
||||||
set results (dnf repoquery --cacheonly "$tok*" --qf "%{NAME}" --available </dev/null 2>/dev/null)
|
set results (dnf repoquery --cacheonly "$tok*" --qf "%{name}" --available </dev/null 2>/dev/null)
|
||||||
end
|
end
|
||||||
if set -q results[1]
|
if set -q results[1]
|
||||||
set results (string match -r -- '.*\\.rpm$' $files) $results
|
set results (string match -r -- '.*\\.rpm$' $files) $results
|
||||||
|
|
Loading…
Reference in a new issue