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
caa2ed25
Commit
caa2ed25
authored
Dec 03, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Jan 13, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm install: transform package_manager:package_name to EPM_BACKEND value (eterbug #17511)
parent
9a108809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
epm-install
bin/epm-install
+34
-0
No files found.
bin/epm-install
View file @
caa2ed25
...
...
@@ -66,6 +66,35 @@ __separate_sudocmd()
return
0
}
process_package_arguments
()
{
local
pmtype
local
name
local
arg
local
package_groups
declare
-A
package_groups
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"
for
arg
in
"
$@
"
;
do
case
"
$arg
"
in
*
:
*
)
pmtype
=
$(
echo
"
$arg
"
|
cut
-d
:
-f1
)
name
=
$(
echo
"
$arg
"
|
cut
-d
:
-f2
)
if
!
echo
"
$VALID_BACKENDS
"
|
grep
-qw
"
$pmtype
"
;
then
pmtype
=
$PMTYPE
fi
;;
*
)
pmtype
=
$PMTYPE
name
=
"
$arg
"
;;
esac
package_groups[
"
$pmtype
"
]
+
=
"
$name
"
done
for
pmtype
in
"
${
!package_groups[@]
}
"
;
do
(
PMTYPE
=
"
$pmtype
"
epm_install_names
${
package_groups
[
$pmtype
]
}
)
done
}
# copied from etersoft-build-utils/share/eterbuild/functions/rpmpkg
epm_install_names
()
{
...
...
@@ -73,6 +102,11 @@ epm_install_names()
warmup_hibase
if
echo
"
$@
"
|
grep
-q
':'
;
then
process_package_arguments
"
$@
"
return
fi
if
[
-n
"
$download_only
"
]
;
then
epm download
"
$@
"
return
...
...
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