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
57abc0aa
Commit
57abc0aa
authored
Feb 12, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-install: fix prefix parsing
parent
daca23b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
epm-install
bin/epm-install
+13
-12
No files found.
bin/epm-install
View file @
57abc0aa
...
@@ -72,26 +72,26 @@ process_package_arguments() {
...
@@ -72,26 +72,26 @@ process_package_arguments() {
local
arg
local
arg
local
package_groups
local
package_groups
declare
-A
package_groups
declare
-A
package_groups
# 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 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
name
=
"
$arg
"
tpmtype
=
$(
echo
"
$arg
"
|
cut
-d
:
-f1
)
case
"
$arg
"
in
case
"
$arg
"
in
*
:
*
)
*
:
*
)
pmtype
=
$(
echo
"
$arg
"
|
cut
-d
:
-f1
)
# FIXME
name
=
$(
echo
"
$arg
"
|
cut
-d
:
-f2
)
if
echo
"
$arg
"
|
grep
-q
"^[a-z][a-z][a-z]*:"
&&
echo
"
$VALID_BACKENDS
"
|
grep
-qw
"
$tpmtype
"
;
then
if
!
echo
"
$VALID_BACKENDS
"
|
grep
-qw
"
$pmtype
"
;
then
pmtype
=
$tpmtype
pmtype
=
$PMTYPE
name
=
$(
echo
"
$arg
"
|
cut
-d
:
-f2
)
fi
fi
;;
;;
*
)
pmtype
=
$PMTYPE
name
=
"
$arg
"
;;
esac
esac
package_groups[
"
$pmtype
"
]
+
=
"
$name
"
package_groups[
"
$pmtype
"
]
+
=
"
$name
"
done
done
for
pmtype
in
"
${
!package_groups[@]
}
"
;
do
for
pmtype
in
"
${
!package_groups[@]
}
"
;
do
(
PMTYPE
=
"
$pmtype
"
epm_install_names
${
package_groups
[
$pmtype
]
}
)
(
PMTYPE
=
"
$pmtype
"
PPARGS
=
1
epm_install_names
${
package_groups
[
$pmtype
]
}
)
done
done
}
}
...
@@ -100,9 +100,8 @@ epm_install_names()
...
@@ -100,9 +100,8 @@ epm_install_names()
{
{
[
-z
"
$1
"
]
&&
return
[
-z
"
$1
"
]
&&
return
warmup_hibase
# check some like nix: prefix, PPARGS for stop possible recursion. TODO
if
echo
"
$*
"
|
grep
-q
'[a-z][a-z][a-z]*:'
&&
[
-z
"
$PPARGS
"
]
;
then
if
echo
"
$@
"
|
grep
-q
':'
;
then
process_package_arguments
"
$@
"
process_package_arguments
"
$@
"
return
return
fi
fi
...
@@ -112,6 +111,8 @@ epm_install_names()
...
@@ -112,6 +111,8 @@ epm_install_names()
return
return
fi
fi
warmup_hibase
if
[
-n
"
$dryrun
"
]
;
then
if
[
-n
"
$dryrun
"
]
;
then
load_helper epm-simulate
load_helper epm-simulate
epm simulate
"
$@
"
epm simulate
"
$@
"
...
...
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