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
62cbe878
Commit
62cbe878
authored
Dec 25, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.64.47
parent
e97d1520
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
+29
-12
epm.sh
packed/epm.sh
+26
-9
serv.sh
packed/serv.sh
+3
-3
No files found.
packed/epm.sh
View file @
62cbe878
...
@@ -36,7 +36,7 @@ SHAREDIR="$PROGDIR"
...
@@ -36,7 +36,7 @@ SHAREDIR="$PROGDIR"
# will replaced with /etc/eepm during install
# will replaced with /etc/eepm during install
CONFIGDIR
=
"
$PROGDIR
/../etc"
CONFIGDIR
=
"
$PROGDIR
/../etc"
export
EPMVERSION
=
"3.64.4
6
"
export
EPMVERSION
=
"3.64.4
7
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -882,7 +882,7 @@ parse_json_value()
...
@@ -882,7 +882,7 @@ parse_json_value()
{
{
local
field
=
"
$1
"
local
field
=
"
$1
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
'["'
$field
'"]'
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
'["'
$field
'"]'
epm
--quiet
tool json
-b
|
grep
-m1
-F
"
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
epm
--
inscript
--
quiet
tool json
-b
|
grep
-m1
-F
"
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
}
}
get_json_value
()
get_json_value
()
...
@@ -901,7 +901,7 @@ parse_json_values()
...
@@ -901,7 +901,7 @@ parse_json_values()
{
{
local
field
=
"
$1
"
local
field
=
"
$1
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
"
\[
$(
echo
"
$field
"
|
sed
's/[^ ]*/"&"/g'
|
sed
's/ /,/g'
)
,[0-9]*
\]
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
"
\[
$(
echo
"
$field
"
|
sed
's/[^ ]*/"&"/g'
|
sed
's/ /,/g'
)
,[0-9]*
\]
"
epm
--quiet
tool json
-b
|
grep
"^
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
epm
--
inscript
--
quiet
tool json
-b
|
grep
"^
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
}
}
get_json_values
()
get_json_values
()
...
@@ -4712,6 +4712,7 @@ Examples:
...
@@ -4712,6 +4712,7 @@ Examples:
epm_full_upgrade
()
epm_full_upgrade
()
{
{
local
orig_args
=
"
$*
"
while
[
-n
"
$1
"
]
;
do
while
[
-n
"
$1
"
]
;
do
case
"
$1
"
in
case
"
$1
"
in
...
@@ -4785,14 +4786,14 @@ confirm_action()
...
@@ -4785,14 +4786,14 @@ confirm_action()
epm_version_after
=
$(
epmq eepm &>/dev/null
)
epm_version_after
=
$(
epmq eepm &>/dev/null
)
if
[
"
$epm_version_before
"
!=
"
$epm_version_after
"
]
;
then
if
[
"
$epm_version_before
"
!=
"
$epm_version_after
"
]
;
then
info
"An update for epm has been found, restarting epm full-upgrade..."
info
"An update for epm has been found, restarting epm full-upgrade..."
exec
$PROGDIR
/
$PROGNAME
full-upgrade
"
$@
"
exec
$PROGDIR
/
$PROGNAME
full-upgrade
$orig_args
exit
0
exit
0
fi
fi
else
else
if
__check_for_epm_version
;
then
if
__check_for_epm_version
;
then
docmd epm ei
docmd epm ei
||
fatal
"Failed to update epm"
info
"An update for epm has been installed, restarting epm full-upgrade..."
info
"An update for epm has been installed, restarting epm full-upgrade..."
exec
$PROGDIR
/
$PROGNAME
full-upgrade
"
$@
"
exec
$PROGDIR
/
$PROGNAME
full-upgrade
$orig_args
exit
0
exit
0
fi
fi
fi
fi
...
@@ -8153,6 +8154,7 @@ Options:
...
@@ -8153,6 +8154,7 @@ Options:
Extra options:
Extra options:
--installed-version - print installed version for the app
--installed-version - print installed version for the app
--available-version - print available version for the app
--package-name - print package name for the app
--package-name - print package name for the app
--info - print info about the app
--info - print info about the app
--list-installed-packages - print list of all packages installed via epm play
--list-installed-packages - print list of all packages installed via epm play
...
@@ -8448,7 +8450,7 @@ case "$1" in
...
@@ -8448,7 +8450,7 @@ case "$1" in
;;
;;
# internal options
# internal options
--installed-version
|
--package-name
|
--product-alternatives
|
--info
)
--installed-version
|
--
available-version
|
--
package-name
|
--product-alternatives
|
--info
)
__run_script
"
$2
"
"
$1
"
"
$3
"
__run_script
"
$2
"
"
$1
"
"
$3
"
exit
exit
;;
;;
...
@@ -9292,8 +9294,23 @@ epm_provides_files()
...
@@ -9292,8 +9294,23 @@ epm_provides_files()
# FIXME: will we provide ourself?
# FIXME: will we provide ourself?
docmd dpkg
-I
$pkg_files
|
grep
"^ *Provides:"
|
sed
"s|^ *Provides:||g"
docmd dpkg
-I
$pkg_files
|
grep
"^ *Provides:"
|
sed
"s|^ *Provides:||g"
;;
;;
ELF
)
# for libraries: SONAME, for executables: file path
local
soname
soname
=
"
$(
LC_ALL
=
C
a
=
""
readelf
-d
"
$pkg_files
"
2>/dev/null |
grep
"(SONAME)"
|
sed
-e
's|.*\[\(.*\)\]|\1|'
)
"
if
[
-n
"
$soname
"
]
;
then
if
file
-L
"
$pkg_files
"
|
grep
-q
" ELF 64-bit "
;
then
echo
"
$soname
()(64bit)"
else
echo
"
$soname
"
fi
else
# executable - provide file path
readlink
-f
"
$pkg_files
"
fi
;;
*
)
*
)
fatal
'Have no suitable command for $P
MTYPE in epm_provid
es()'
fatal
'Have no suitable command for $P
KGTYPE in epm_provides_fil
es()'
;;
;;
esac
esac
}
}
...
@@ -9407,7 +9424,7 @@ epm_provides()
...
@@ -9407,7 +9424,7 @@ epm_provides()
epm_provides_files
$pkg_files
epm_provides_files
$pkg_files
# shellcheck disable=SC2046
# shellcheck disable=SC2046
epm_provides_names
$(
print_name
$pkg_names
)
[
-z
"
$pkg_names
"
]
||
epm_provides_names
$(
print_name
$pkg_names
)
}
}
# File bin/epm-query:
# File bin/epm-query:
...
...
packed/serv.sh
View file @
62cbe878
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.64.4
6
"
EPMVERSION
=
"3.64.4
7
"
# package, single (file), pipe, git
# package, single (file), pipe, git
EPMMODE
=
"package"
EPMMODE
=
"package"
...
@@ -877,7 +877,7 @@ parse_json_value()
...
@@ -877,7 +877,7 @@ parse_json_value()
{
{
local
field
=
"
$1
"
local
field
=
"
$1
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
'["'
$field
'"]'
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
'["'
$field
'"]'
epm
--quiet
tool json
-b
|
grep
-m1
-F
"
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
epm
--
inscript
--
quiet
tool json
-b
|
grep
-m1
-F
"
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
}
}
get_json_value
()
get_json_value
()
...
@@ -896,7 +896,7 @@ parse_json_values()
...
@@ -896,7 +896,7 @@ parse_json_values()
{
{
local
field
=
"
$1
"
local
field
=
"
$1
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
"
\[
$(
echo
"
$field
"
|
sed
's/[^ ]*/"&"/g'
|
sed
's/ /,/g'
)
,[0-9]*
\]
"
echo
"
$field
"
|
grep
-q
-E
"^
\[
"
||
field
=
"
\[
$(
echo
"
$field
"
|
sed
's/[^ ]*/"&"/g'
|
sed
's/ /,/g'
)
,[0-9]*
\]
"
epm
--quiet
tool json
-b
|
grep
"^
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
epm
--
inscript
--
quiet
tool json
-b
|
grep
"^
$field
"
|
sed
-e
's|.*\][[:space:]]||'
|
sed
-e
's|"\(.*\)"|\1|g'
}
}
get_json_values
()
get_json_values
()
...
...
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