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
c4e7228d
Commit
c4e7228d
authored
Apr 06, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.62.1
parent
6d4f6e23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
12 deletions
+43
-12
epm.sh
packed/epm.sh
+41
-10
serv.sh
packed/serv.sh
+2
-2
No files found.
packed/epm.sh
View file @
c4e7228d
...
...
@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.62.
0
"
EPMVERSION
=
"3.62.
1
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -538,7 +538,7 @@ confirm() {
confirm_info
()
{
info
"
$*
"
info
"
$*
"
>
&2
if
[
-z
"
$non_interactive
"
]
;
then
confirm
"Are you sure? [y/N]"
||
fatal
"Exiting"
fi
...
...
@@ -1080,13 +1080,13 @@ __epm_addrepo_rhel()
;;
powertools
)
# https://serverfault.com/questions/997896/how-to-enable-powertools-repository-in-centos-8
epm
install
--skip-installed
dnf-plugins-core
assure_exists
dnf-plugins-core
sudocmd dnf config-manager
--set-enabled
powertools
return
1
;;
crb
)
# https://wiki.rockylinux.org/rocky/repo/
epm
install
--skip-installed
dnf-plugins-core
assure_exists
dnf-plugins-core
sudocmd dnf config-manager
--set-enabled
crb
return
1
;;
...
...
@@ -1602,6 +1602,9 @@ __epm_assure_checking()
return
0
fi
# at least check if the package is installed
is_installed
"
$PACKAGE
"
&&
return
0
return
1
}
...
...
@@ -3081,6 +3084,12 @@ __download_pkg_urls()
[
"
$i
"
=
"*"
]
&&
warning
"Incorrect true status from eget. No saved files from download
$url
, ignoring"
&&
continue
[
-s
"
$tmppkg
/
$i
"
]
||
continue
chmod
$verbose
a+r
"
$tmppkg
/
$i
"
local
si
=
"
${
i
/ /
}
"
if
[
"
$si
"
!=
"
$i
"
]
;
then
info
"Space detected in the downloaded file '
$i
', removing spaces ..."
mv
-v
"
$tmppkg
/
$i
"
"
$tmppkg
/
$si
"
i
=
"
$si
"
fi
[
-n
"
$pkg_files
"
]
&&
pkg_files
=
"
$pkg_files
$tmppkg
/
$i
"
||
pkg_files
=
"
$tmppkg
/
$i
"
[
-n
"
$pkg_urls_downloaded
"
]
&&
pkg_urls_downloaded
=
"
$pkg_urls_downloaded
$url
"
||
pkg_urls_downloaded
=
"
$url
"
done
...
...
@@ -12059,6 +12068,7 @@ get_url_to_etersoft_mirror()
__add_to_contents_index_list
()
{
[
-n
"
$verbose
"
]
&&
echo
"
$1
->
$2
"
[
-s
"
$2
"
]
||
return
echo
"
$2
"
>>
$ALT_CONTENTS_INDEX_LIST
}
...
...
@@ -13301,12 +13311,13 @@ epm_Upgrade()
epm_whatdepends
()
{
local
CMD
[
-n
"
$pkg_files
"
]
&&
fatal
"whatdepends does not handle files"
[
-n
"
$pkg_names
"
]
||
fatal
"whatdepends: package name is missed"
local
pkg
=
$(
print_name
$pkg_names
)
local
pkg
case
$BASEDISTRNAME
in
"alt"
)
[
-n
"
$@
"
]
||
fatal
"Missed package name or some provides"
pkg
=
"
$(
print_name
"
$@
"
)
"
case
$PMTYPE
in
apt-rpm
)
if
[
-z
"
$verbose
"
]
;
then
showcmd apt-cache whatdepends
$pkg
if
[
-n
"
$short
"
]
;
then
...
...
@@ -13317,6 +13328,18 @@ case $PMTYPE in
return
fi
CMD
=
"apt-cache whatdepends"
docmd
$CMD
$pkg
return
;;
esac
[
-n
"
$pkg_files
"
]
&&
fatal
"whatdepends does not handle files"
[
-n
"
$pkg_names
"
]
||
fatal
"whatdepends: package name is missed"
pkg
=
"
$(
print_name
$pkg_names
)
"
case
$PMTYPE
in
apt-rpm
)
CMD
=
"apt-cache whatdepends"
;;
apt-dpkg|aptitude-dpkg
)
CMD
=
"apt-cache rdepends"
...
...
@@ -15949,6 +15972,13 @@ get_urls()
return
fi
# Markdown support
# https://raw.githubusercontent.com/dotnet/core/main/release-notes/8.0/8.0.3/8.0.103.md
if
echo
"
$URL
"
|
grep
-q
"
\.
md$"
;
then
scat
$URL
|
grep
"https*"
|
sed
-e
's|.*\(https*://\)|\1|'
return
fi
# cat html, divide to lines by tags and cut off hrefs only
scat
$URL
|
sed
-e
's|<|<\n|g'
-e
's|data-file=|href=|g'
-e
"s|href=http|href=
\"
http|g"
-e
"s|>|
\"
>|g"
-e
"s|'|
\"
|g"
|
\
grep
-i
-o
-E
'href="(.+)"'
|
sed
-e
's|&|\&|'
|
cut
-d
'"'
-f2
...
...
@@ -16012,6 +16042,7 @@ fi
if
[
-n
"
$2
"
]
;
then
URL
=
"
$1
"
MASK
=
"
$2
"
SEPMASK
=
"
$2
"
else
if
have_end_slash
"
$1
"
;
then
URL
=
"
$1
"
...
...
@@ -16058,7 +16089,7 @@ is_wildcard()
}
# If there is no wildcard symbol like asterisk, just download
if
!
is_wildcard
"
$MASK
"
||
echo
"
$MASK
"
|
grep
-q
"[?].*="
;
then
if
[
-z
"
$SEPMASK
"
]
&&
!
is_wildcard
"
$MASK
"
||
echo
"
$MASK
"
|
grep
-q
"[?].*="
;
then
sget
"
$1
"
"
$TARGETFILE
"
return
fi
...
...
packed/serv.sh
View file @
c4e7228d
...
...
@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install
CONFIGDIR
=
$PROGDIR
/../etc
EPMVERSION
=
"3.62.
0
"
EPMVERSION
=
"3.62.
1
"
# package, single (file), pipe, git
EPMMODE
=
"package"
...
...
@@ -538,7 +538,7 @@ confirm() {
confirm_info
()
{
info
"
$*
"
info
"
$*
"
>
&2
if
[
-z
"
$non_interactive
"
]
;
then
confirm
"Are you sure? [y/N]"
||
fatal
"Exiting"
fi
...
...
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