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
Nurlan
eepm
Commits
dc89f100
Commit
dc89f100
authored
Apr 19, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.18.1
parent
431f01b6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
epm.sh
packed/epm.sh
+17
-5
serv.sh
packed/serv.sh
+14
-3
No files found.
packed/epm.sh
View file @
dc89f100
...
...
@@ -43,6 +43,14 @@ load_helper()
# File bin/epm-sh-functions:
check_core_commands
()
{
which
--help
>
/dev/null
||
fatal
"Can't find which command (which package is missed?)"
grep
--help
>
/dev/null
||
fatal
"Can't find grep command (coreutils package is missed?)"
sed
--help
>
/dev/null
||
fatal
"Can't find sed command (sed package is missed?)"
}
inputisatty
()
{
# check stdin
...
...
@@ -70,6 +78,8 @@ check_tty()
[
-n
"
$TERM
"
]
||
TERM
=
dumb
export
TERM
check_core_commands
# egrep from busybox may not --color
# egrep from MacOS print help to stderr
if
grep
-E
--help
2>&1 |
grep
-q
--
"--color"
;
then
...
...
@@ -358,9 +368,10 @@ withtimeout()
$TO
"
$@
"
return
fi
fatal
"Possible indefinite wait due timeout command is missed"
# fallback: drop time arg and run without timeout
shift
"
$@
"
#
shift
#
"$@"
}
set_eatmydata
()
...
...
@@ -6352,7 +6363,8 @@ __epm_repack_to_rpm()
SUBGENERIC
=
'appimage'
./
$alpkg
--appimage-extract
||
fatal
alpkg
=
$PKGNAME
-
$VERSION
.tar
erc a
$alpkg
squashfs-root
assure_exists erc
||
fatal
a
=
erc a
$alpkg
squashfs-root
else
VERSION
=
"
$(
echo
"
$alpkg
"
|
grep
-o
-P
"[-_.]([0-9])([0-9])*(
\.
[0-9])*"
|
head
-n1
|
sed
-e
's|^[-_.]||'
)
"
#"
if
[
-n
"
$VERSION
"
]
;
then
...
...
@@ -10614,7 +10626,7 @@ Examples:
print_version
()
{
echo
"EPM package manager version 3.18.
0
https://wiki.etersoft.ru/Epm"
echo
"EPM package manager version 3.18.
1
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
@@ -10624,7 +10636,7 @@ print_version()
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Descr
=
"epm - EPM package manager"
EPMVERSION
=
3.18.
0
EPMVERSION
=
3.18.
1
verbose
=
$EPM_VERBOSE
quiet
=
nodeps
=
...
...
packed/serv.sh
View file @
dc89f100
...
...
@@ -34,6 +34,14 @@ load_helper()
# File bin/epm-sh-functions:
check_core_commands
()
{
which
--help
>
/dev/null
||
fatal
"Can't find which command (which package is missed?)"
grep
--help
>
/dev/null
||
fatal
"Can't find grep command (coreutils package is missed?)"
sed
--help
>
/dev/null
||
fatal
"Can't find sed command (sed package is missed?)"
}
inputisatty
()
{
# check stdin
...
...
@@ -61,6 +69,8 @@ check_tty()
[
-n
"
$TERM
"
]
||
TERM
=
dumb
export
TERM
check_core_commands
# egrep from busybox may not --color
# egrep from MacOS print help to stderr
if
grep
-E
--help
2>&1 |
grep
-q
--
"--color"
;
then
...
...
@@ -349,9 +359,10 @@ withtimeout()
$TO
"
$@
"
return
fi
fatal
"Possible indefinite wait due timeout command is missed"
# fallback: drop time arg and run without timeout
shift
"
$@
"
#
shift
#
"$@"
}
set_eatmydata
()
...
...
@@ -3139,7 +3150,7 @@ print_version()
local
on_text
=
"(host system)"
local
virt
=
"
$(
$DISTRVENDOR
-i
)
"
[
"
$virt
"
=
"(unknown)"
]
||
[
"
$virt
"
=
"(host system)"
]
||
on_text
=
"(under
$virt
)"
echo
"Service manager version 3.18.
0
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.18.
1
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
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