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
1746cd89
Commit
1746cd89
authored
May 08, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.55.6
parent
a4593af3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
130 additions
and
8 deletions
+130
-8
epm.sh
packed/epm.sh
+73
-7
serv.sh
packed/serv.sh
+57
-1
No files found.
packed/epm.sh
View file @
1746cd89
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.55.
5
"
EPMVERSION
=
"3.55.
6
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -493,6 +493,62 @@ assure_root()
is_root
||
fatal
"run me only under root"
}
esu
()
{
if
is_root
;
then
if
[
-n
"
$*
"
]
;
then
[
-n
"
$quiet
"
]
||
showcmd
"
$*
"
exec
"
$@
"
else
# just shell
showcmd
"su -"
exec
su -
fi
fi
set_pm_type
escape_args
()
{
local
output
=
''
while
[
-n
"
$1
"
]
;
do
if
has_space
"
$1
"
;
then
[
-n
"
$output
"
]
&&
output
=
"
$output
'
$1
'"
||
output
=
"'
$1
'"
else
[
-n
"
$output
"
]
&&
output
=
"
$output
$1
"
||
output
=
"
$1
"
fi
shift
done
echo
"
$output
"
}
escaped
=
"
$(
escape_args
"
$@
"
)
"
# sudo is not accessible, will ask root password
if
!
set_sudo
;
then
#info "Enter root password:"
if
[
-n
"
$*
"
]
;
then
[
-n
"
$quiet
"
]
||
showcmd
"su - -c
$escaped
"
exec
su -
-c
"
$escaped
"
else
# just shell
showcmd
"su -"
exec
su -
fi
fi
#info "You can be asked about your password:"
if
[
-n
"
$*
"
]
;
then
[
-n
"
$quiet
"
]
||
showcmd
"
$SUDO
su - -c
$escaped
"
$SUDO
su -
-c
"
$escaped
"
else
showcmd
"
$SUDO
su -"
$SUDO
su -
fi
}
regexp_subst
()
{
local
expression
=
"
$1
"
...
...
@@ -2573,6 +2629,12 @@ epm_downgrade()
# it is useful for first time running
update_repo_if_needed
# if possible, it will put pkg_urls into pkg_files and reconstruct pkg_filenames
if
[
-n
"
$pkg_urls
"
]
;
then
info
"Downloading packages assigned to downgrade ..."
__handle_pkg_urls_to_install
fi
info
"Running command for downgrade packages"
case
$BASEDISTRNAME
in
...
...
@@ -2583,11 +2645,14 @@ epm_downgrade()
(
pkg_names
=
$(
get_only_installed_packages
$pkg_names
)
epm_install
)
__epm_remove_apt_downgrade_preferences
elif
[
-n
"
$pkg_files
"
]
;
then
(
pkg_files
=
$pkg_files
force
=
"
$force
-F --oldpackage"
epm_install
)
else
__epm_add_alt_apt_downgrade_preferences
||
return
epm_upgrade
"
$@
"
__epm_remove_apt_downgrade_preferences
local
pkgs
=
''
local
i
for
i
in
$pkg_files
;
do
local
pkgname
=
"
$(
epm print name
for
package
$i
)
"
is_installed
$pkgname
||
continue
pkgs
=
"
$pkgs
$i
"
done
(
force
=
"
$force
--oldpackage"
epm_install_files
$pkgs
)
fi
return
;;
...
...
@@ -4204,7 +4269,8 @@ epm_install_alt_kernel_module()
# firstly, update all needed kernels (by flavour)
for
kf
in
$(
estrlist
uniq
$kflist
)
;
do
epm update-kernel
-t
$kf
||
exit
info
docmd epm update-kernel
-t
$kf
||
exit
done
# secondly, install module(s)
...
...
packed/serv.sh
View file @
1746cd89
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.55.
5
"
EPMVERSION
=
"3.55.
6
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -491,6 +491,62 @@ assure_root()
is_root
||
fatal
"run me only under root"
}
esu
()
{
if
is_root
;
then
if
[
-n
"
$*
"
]
;
then
[
-n
"
$quiet
"
]
||
showcmd
"
$*
"
exec
"
$@
"
else
# just shell
showcmd
"su -"
exec
su -
fi
fi
set_pm_type
escape_args
()
{
local
output
=
''
while
[
-n
"
$1
"
]
;
do
if
has_space
"
$1
"
;
then
[
-n
"
$output
"
]
&&
output
=
"
$output
'
$1
'"
||
output
=
"'
$1
'"
else
[
-n
"
$output
"
]
&&
output
=
"
$output
$1
"
||
output
=
"
$1
"
fi
shift
done
echo
"
$output
"
}
escaped
=
"
$(
escape_args
"
$@
"
)
"
# sudo is not accessible, will ask root password
if
!
set_sudo
;
then
#info "Enter root password:"
if
[
-n
"
$*
"
]
;
then
[
-n
"
$quiet
"
]
||
showcmd
"su - -c
$escaped
"
exec
su -
-c
"
$escaped
"
else
# just shell
showcmd
"su -"
exec
su -
fi
fi
#info "You can be asked about your password:"
if
[
-n
"
$*
"
]
;
then
[
-n
"
$quiet
"
]
||
showcmd
"
$SUDO
su - -c
$escaped
"
$SUDO
su -
-c
"
$escaped
"
else
showcmd
"
$SUDO
su -"
$SUDO
su -
fi
}
regexp_subst
()
{
local
expression
=
"
$1
"
...
...
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