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
Vladislav
eepm
Commits
cd2ea3a5
Commit
cd2ea3a5
authored
Aug 16, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.24.0
parent
9fa4ff29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
epm.sh
packed/epm.sh
+13
-11
serv.sh
packed/serv.sh
+7
-5
No files found.
packed/epm.sh
View file @
cd2ea3a5
...
...
@@ -286,13 +286,13 @@ clean_store_output()
epm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use epm call from the piped script"
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
bash
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
sudoepm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use epm call from the piped script"
sudorun
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
sudorun
bash
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
fatal
()
...
...
@@ -367,9 +367,11 @@ set_sudo()
fi
SUDO_TESTED
=
"0"
SUDO
=
"
$SUDO_CMD
--"
# FIXME: does not work: sudo -- VARIABLE=some command
SUDO
=
"
$SUDO_CMD
"
#SUDO="$SUDO_CMD --"
# check for < 1.7 version which do not support -- (and --help possible too)
$SUDO_CMD
-h
2>/dev/null |
grep
-q
" --"
||
SUDO
=
"
$SUDO_CMD
"
#
$SUDO_CMD -h 2>/dev/null | grep -q " --" || SUDO="$SUDO_CMD"
}
...
...
@@ -3043,11 +3045,10 @@ epm_ni_install_names()
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
export
DEBIAN_FRONTEND
=
noninteractive
sudocmd apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
sudocmd
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
return
;;
aptitude-dpkg
)
sudocmd aptitude
-y
install
$@
sudocmd
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive
aptitude
-y
install
$@
return
;;
yum-rpm
)
sudocmd yum
-y
$YUMOPTIONS
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
...
...
@@ -6668,6 +6669,7 @@ __create_rpmmacros()
%_tmppath
$TMPDIR
%packager EPM <support@etersoft.ru>
%_vendor EEPM
%_gpg_name support@etersoft.ru
%_allow_root_build 1
...
...
@@ -11194,9 +11196,9 @@ Examples:
print_version
()
{
echo
"EPM package manager version 3.2
3.4
https://wiki.etersoft.ru/Epm"
echo
"EPM package manager version 3.2
4.0
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-202
1
"
echo
"Copyright (c) Etersoft 2012-202
2
"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
}
...
...
@@ -11204,7 +11206,7 @@ print_version()
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Descr
=
"epm - EPM package manager"
EPMVERSION
=
3.2
3.4
EPMVERSION
=
3.2
4.0
verbose
=
$EPM_VERBOSE
quiet
=
nodeps
=
...
...
@@ -11218,7 +11220,7 @@ noscripts=
short
=
direct
=
sort
=
non_interactive
=
non_interactive
=
$EPM_AUTO
force_yes
=
skip_installed
=
skip_missed
=
...
...
packed/serv.sh
View file @
cd2ea3a5
...
...
@@ -277,13 +277,13 @@ clean_store_output()
epm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use epm call from the piped script"
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
bash
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
sudoepm
()
{
[
-n
"
$PROGNAME
"
]
||
fatal
"Can't use epm call from the piped script"
sudorun
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
sudorun
bash
$PROGDIR
/
$PROGNAME
--inscript
"
$@
"
}
fatal
()
...
...
@@ -358,9 +358,11 @@ set_sudo()
fi
SUDO_TESTED
=
"0"
SUDO
=
"
$SUDO_CMD
--"
# FIXME: does not work: sudo -- VARIABLE=some command
SUDO
=
"
$SUDO_CMD
"
#SUDO="$SUDO_CMD --"
# check for < 1.7 version which do not support -- (and --help possible too)
$SUDO_CMD
-h
2>/dev/null |
grep
-q
" --"
||
SUDO
=
"
$SUDO_CMD
"
#
$SUDO_CMD -h 2>/dev/null | grep -q " --" || SUDO="$SUDO_CMD"
}
...
...
@@ -2289,7 +2291,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.2
3.4
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.2
4.0
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