Commit 1f356249 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-install: improve backends list, fix dnf5 support

parent a439b4fa
...@@ -73,7 +73,7 @@ process_package_arguments() { ...@@ -73,7 +73,7 @@ process_package_arguments() {
local package_groups local package_groups
declare -A package_groups declare -A package_groups
# ONLY supported backend in short form? # ONLY supported backend in short form?
VALID_BACKENDS="apt-rpm apt-dpkg aptitude-dpkg deepsolver-rpm urpm-rpm packagekit pkgsrc pkgng redox-pkg emerge pacman aura yum-rpm dnf-rpm snappy zypper-rpm mpkg eopkg conary npackd slackpkg homebrew opkg nix apk tce guix termux-pkg aptcyg xbps appget winget" VALID_BACKENDS="apt-rpm apt-dpkg apm stplr aptitude-dpkg deepsolver-rpm urpm-rpm packagekit pkgsrc pkgng redox-pkg emerge pacman aura yum-rpm dnf-rpm snappy zypper-rpm mpkg eopkg conary npackd slackpkg homebrew opkg nix apk tce guix termux-pkg aptcyg xbps appget winget"
for arg in "$@"; do for arg in "$@"; do
pmtype=$PMTYPE pmtype=$PMTYPE
name="$arg" name="$arg"
...@@ -83,6 +83,10 @@ process_package_arguments() { ...@@ -83,6 +83,10 @@ process_package_arguments() {
# FIXME # FIXME
if echo "$arg" | grep -q "^[a-z][a-z][a-z]*:" && echo "$VALID_BACKENDS" | grep -qw "$tpmtype"; then if echo "$arg" | grep -q "^[a-z][a-z][a-z]*:" && echo "$VALID_BACKENDS" | grep -qw "$tpmtype"; then
pmtype=$tpmtype pmtype=$tpmtype
# copied from distr_info
if [ "$pmtype" = "dnf-rpm" ] && a= dnf --version | grep -qi "dnf5" ; then
pmtype="dnf5-rpm"
fi
name=$(echo "$arg" | cut -d: -f2) name=$(echo "$arg" | cut -d: -f2)
fi fi
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment