Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
8304aa86
Commit
8304aa86
authored
Nov 16, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm install: allow short form for target backends
parent
79e31b58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
epm-install
bin/epm-install
+13
-5
No files found.
bin/epm-install
View file @
8304aa86
...
...
@@ -66,22 +66,30 @@ __separate_sudocmd()
return
0
}
VALID_BACKENDS
=
"apt-rpm apt-dpkg apm-rpm 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"
__get_tpmtype
()
{
local
arg
=
"
$1
"
local
tpmtype
=
"
$(
echo
"
$arg
"
|
cut
-d
:
-f1
)
"
# need first three chars
echo
"
$arg
"
|
grep
-q
"^[a-z][a-z][a-z-]*:"
||
return
echo
"
$VALID_BACKENDS
"
|
tr
' '
'\n'
|
grep
-w
"^
$tpmtype
"
}
process_package_arguments
()
{
local
pmtype
local
name
local
arg
local
package_groups
declare
-A
package_groups
# ONLY supported backend in short form?
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
pmtype
=
$PMTYPE
name
=
"
$arg
"
tpmtype
=
$(
echo
"
$arg
"
|
cut
-d
:
-f1
)
case
"
$arg
"
in
*
:
*
)
# FIXME
if
echo
"
$arg
"
|
grep
-q
"^[a-z][a-z][a-z]*:"
&&
echo
"
$VALID_BACKENDS
"
|
grep
-qw
"
$tpmtype
"
;
then
local
tpmtype
=
"
$(
__get_tpmtype
"
$arg
"
)
"
if
[
-n
"
$tpmtype
"
]
;
then
pmtype
=
$tpmtype
# copied from distr_info
if
[
"
$pmtype
"
=
"dnf-rpm"
]
&&
a
=
dnf
--version
|
grep
-qi
"dnf5"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment