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
ed6f325d
Commit
ed6f325d
authored
Apr 28, 2024
by
Boria138
Committed by
Vitaly Lipatov
Jul 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace all echo for translate to message
parent
ba060ded
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
74 additions
and
71 deletions
+74
-71
distr_info
bin/distr_info
+4
-4
epm
bin/epm
+12
-10
epm-addrepo
bin/epm-addrepo
+15
-15
epm-autoorphans
bin/epm-autoorphans
+4
-4
epm-autoremove
bin/epm-autoremove
+5
-5
epm-check_updated_repo
bin/epm-check_updated_repo
+4
-4
epm-checksystem
bin/epm-checksystem
+2
-2
epm-dedup
bin/epm-dedup
+1
-1
epm-download
bin/epm-download
+2
-2
epm-epm_install
bin/epm-epm_install
+1
-1
epm-history
bin/epm-history
+4
-4
epm-kernel_update
bin/epm-kernel_update
+1
-1
epm-mark
bin/epm-mark
+1
-1
epm-packages
bin/epm-packages
+1
-1
epm-prescription
bin/epm-prescription
+1
-1
epm-release_upgrade
bin/epm-release_upgrade
+3
-3
epm-repack
bin/epm-repack
+1
-1
epm-repo-addkey
bin/epm-repo-addkey
+1
-1
epm-tool
bin/epm-tool
+1
-1
esu
bin/esu
+2
-2
serv
bin/serv
+2
-0
tools_eget
bin/tools_eget
+5
-6
tools_erc
bin/tools_erc
+0
-1
tools_json
bin/tools_json
+1
-0
No files found.
bin/distr_info
View file @
ed6f325d
...
@@ -939,7 +939,7 @@ local orig=''
...
@@ -939,7 +939,7 @@ local orig=''
[
-n
"
$BUILD_ID
"
]
&&
[
"
$DISTRIB_FULL_RELEASE
"
!=
"
$BUILD_ID
"
]
&&
orig
=
" (orig.
$BUILD_ID
)"
[
-n
"
$BUILD_ID
"
]
&&
[
"
$DISTRIB_FULL_RELEASE
"
!=
"
$BUILD_ID
"
]
&&
orig
=
" (orig.
$BUILD_ID
)"
local
EV
=
''
local
EV
=
''
[
-n
"
$EPMVERSION
"
]
&&
EV
=
"(EPM version
$EPMVERSION
) "
[
-n
"
$EPMVERSION
"
]
&&
EV
=
"(EPM version
$EPMVERSION
) "
message
'
cat
<<
EOF
distro_info v
$PROGVERSION
$EV
: Copyright © 2007-2024 Etersoft
distro_info v
$PROGVERSION
$EV
: Copyright © 2007-2024 Etersoft
Pretty name (--pretty):
$(
print_pretty_name
)
Pretty name (--pretty):
$(
print_pretty_name
)
...
@@ -956,7 +956,7 @@ distro_info v$PROGVERSION $EV: Copyright © 2007-2024 Etersoft
...
@@ -956,7 +956,7 @@ distro_info v$PROGVERSION $EV: Copyright © 2007-2024 Etersoft
Bug report URL (--bug-report-url):
$(
print_bug_report_url
)
Bug report URL (--bug-report-url):
$(
print_bug_report_url
)
(run with -h to get help)
(run with -h to get help)
'
EOF
}
}
print_help
()
print_help
()
...
@@ -995,7 +995,7 @@ print_help()
...
@@ -995,7 +995,7 @@ print_help()
# print code for eval with names for eepm
# print code for eval with names for eepm
print_eepm_env
()
print_eepm_env
()
{
{
message
'
cat
<<
EOF
# -d | --base-distro-name
# -d | --base-distro-name
DISTRNAME="
$(
echo
$DISTRIB_ID
)
"
DISTRNAME="
$(
echo
$DISTRIB_ID
)
"
# -v | --base-version
# -v | --base-version
...
@@ -1022,7 +1022,7 @@ DISTRMEMORY="$(get_memory_size)"
...
@@ -1022,7 +1022,7 @@ DISTRMEMORY="$(get_memory_size)"
PKGVENDOR=
$(
pkgvendor
)
PKGVENDOR=
$(
pkgvendor
)
RPMVENDOR=
$(
pkgvendor
)
RPMVENDOR=
$(
pkgvendor
)
'
EOF
}
}
...
...
bin/epm
View file @
ed6f325d
...
@@ -54,7 +54,7 @@ load_helper()
...
@@ -54,7 +54,7 @@ load_helper()
local
CMD
=
"
$SHAREDIR
/
$1
"
local
CMD
=
"
$SHAREDIR
/
$1
"
# do not use fatal() here, it can be initial state
# do not use fatal() here, it can be initial state
[
-r
"
$CMD
"
]
||
{
echo
"FATAL: Have no
$CMD
helper file"
;
exit
1
;
}
[
-r
"
$CMD
"
]
||
{
message
"FATAL: Have no
$CMD
helper file"
;
exit
1
;
}
eval
"
$shieldname
=1"
eval
"
$shieldname
=1"
# shellcheck disable=SC1090
# shellcheck disable=SC1090
.
$CMD
.
$CMD
...
@@ -88,34 +88,36 @@ check_tty
...
@@ -88,34 +88,36 @@ check_tty
phelp
()
phelp
()
{
{
echo
"
$Descr
echo
"
$Descr
$Usage
$Usage
"
Options:
message
"Options:"
$(
get_help HELPOPT
)
$(
get_help HELPOPT
)
Short commands:
message
"Short commands:"
$(
get_help HELPSHORT
)
$(
get_help HELPSHORT
)
$(
get_help HELPCMD
)
$(
get_help HELPCMD
)
message
"
Examples:
Examples:
$
epmi etckeeper install etckeeper package
$
epmi etckeeper install etckeeper package
$
epmqp lib print out all installed packages with 'lib' in a name
$
epmqp lib print out all installed packages with 'lib' in a name
$
epmqf ip print out a package the command 'ip' from is
$
epmqf ip print out a package the command 'ip' from is
"
"
}
}
print_version
()
print_version
()
{
{
echo
"EPM package manager version
$EPMVERSION
Telegram: https://t.me/useepm https://wiki.etersoft.ru/Epm"
message
'EPM package manager version $EPMVERSION Telegram: https://t.me/useepm https://wiki.etersoft.ru/Epm
echo
"Running on
$DISTRNAME
/
$DISTRVERSION
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
Running on $DISTRNAME/$DISTRVERSION ($PMTYPE package manager uses $PKGFORMAT package format)
echo
"Copyright (c) Etersoft 2012-2024"
Copyright (c) Etersoft 2012-2024
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
This program may be freely redistributed under the terms of the GNU AGPLv3.'
}
}
Usage
=
"Usage: epm [options] <command> [package name(s), package files]..."
Usage
=
$(
eval_gettext
"Usage: epm [options] <command> [package name(s), package files]..."
)
Descr
=
"epm - EPM package manager"
Descr
=
$(
eval_gettext
"epm - EPM package manager"
)
debug
=
debug
=
verbose
=
$EPM_VERBOSE
verbose
=
$EPM_VERBOSE
...
...
bin/epm-addrepo
View file @
ed6f325d
...
@@ -26,11 +26,11 @@ __epm_addrepo_rhel()
...
@@ -26,11 +26,11 @@ __epm_addrepo_rhel()
{
{
local
repo
=
"
$*
"
local
repo
=
"
$*
"
if
[
-z
"
$repo
"
]
;
then
if
[
-z
"
$repo
"
]
;
then
echo
"Add repo."
message
'Add repo.
echo
"1. Use with repository URL, f.i. http://www.example.com/example.repo"
1. Use with repository URL, f.i. http://www.example.com/example.repo
echo
"2. Use with epel to add EPEL repository"
2. Use with epel to add EPEL repository
echo
"3. Use with powertools to add PowerTools repository"
3. Use with powertools to add PowerTools repository
echo
"4. Use with crb to add Rocky Linux CRB repository"
4. Use with crb to add Rocky Linux CRB repository'
return
1
return
1
fi
fi
case
"
$1
"
in
case
"
$1
"
in
...
@@ -325,10 +325,10 @@ __epm_addrepo_astra()
...
@@ -325,10 +325,10 @@ __epm_addrepo_astra()
local
repo
=
"
$*
"
local
repo
=
"
$*
"
if
[
-z
"
$repo
"
]
||
[
"
$repo
"
=
"--help"
]
;
then
if
[
-z
"
$repo
"
]
||
[
"
$repo
"
=
"--help"
]
;
then
info
"Add repo. You can use follow params:"
message
'Add repo. You can use follow params:
echo
" distribution component name"
distribution component name
echo
" full sources list line"
full sources list line
echo
" URL version component"
URL version component'
return
return
fi
fi
...
@@ -391,12 +391,12 @@ __epm_addrepo_deb()
...
@@ -391,12 +391,12 @@ __epm_addrepo_deb()
local
repo
=
"
$*
"
local
repo
=
"
$*
"
if
[
-z
"
$repo
"
]
||
[
"
$repo
"
=
"--help"
]
;
then
if
[
-z
"
$repo
"
]
||
[
"
$repo
"
=
"--help"
]
;
then
info
"Add repo. You can use follow params:"
message
'Add repo. You can use follow params:
echo
" docker - add official docker repo"
docker - add official docker repo
echo
" ppa:<user>/<ppa-name> - add PPA repo"
ppa:<user>/<ppa-name> - add PPA repo
echo
" distribution component name"
distribution component name
echo
" full sources list line"
full sources list line
echo
" URL version component"
URL version component'
return
return
fi
fi
...
...
bin/epm-autoorphans
View file @
ed6f325d
...
@@ -32,7 +32,7 @@ case $BASEDISTRNAME in
...
@@ -32,7 +32,7 @@ case $BASEDISTRNAME in
# ALT Linux only
# ALT Linux only
assure_exists /usr/share/apt/scripts/list-extras.lua apt-scripts
assure_exists /usr/share/apt/scripts/list-extras.lua apt-scripts
if
[
-z
"
$dryrun
"
]
;
then
if
[
-z
"
$dryrun
"
]
;
then
echo
"We will try remove all installed packages which are missed in repositories"
message
"We will try remove all installed packages which are missed in repositories"
warning
"Use with caution!"
warning
"Use with caution!"
fi
fi
epm Upgrade
||
fatal
epm Upgrade
||
fatal
...
@@ -47,14 +47,14 @@ case $BASEDISTRNAME in
...
@@ -47,14 +47,14 @@ case $BASEDISTRNAME in
info
"Retrieving packages installed via epm play ..."
info
"Retrieving packages installed via epm play ..."
local
play_installed
=
"
$(
epm play
--list-installed-packages
)
"
local
play_installed
=
"
$(
epm play
--list-installed-packages
)
"
if
[
-n
"
$play_installed
"
]
;
then
if
[
-n
"
$play_installed
"
]
;
then
echo
"Skip follow packages installed via epm play:
$(
echo
$play_installed
| xargs
-n1000
echo
)
"
message
"Skip follow packages installed via epm play:
$(
echo
$play_installed
| xargs
-n1000
echo
)
"
PKGLIST
=
"
$(
estrlist exclude
"
$play_installed
"
"
$PKGLIST
"
)
"
PKGLIST
=
"
$(
estrlist exclude
"
$play_installed
"
"
$PKGLIST
"
)
"
fi
fi
# TODO: implement for other PMTYPE
# TODO: implement for other PMTYPE
local
hold_packages
=
"
$(
epm mark
--short
showhold
)
"
local
hold_packages
=
"
$(
epm mark
--short
showhold
)
"
if
[
-n
"
$hold_packages
"
]
;
then
if
[
-n
"
$hold_packages
"
]
;
then
echo
"Skip follow packages on hold:
$(
echo
$hold_packages
| xargs
-n1000
echo
)
"
message
"Skip follow packages on hold:
$(
echo
$hold_packages
| xargs
-n1000
echo
)
"
PKGLIST
=
"
$(
estrlist exclude
"
$hold_packages
"
"
$PKGLIST
"
)
"
PKGLIST
=
"
$(
estrlist exclude
"
$hold_packages
"
"
$PKGLIST
"
)
"
fi
fi
...
@@ -67,7 +67,7 @@ case $BASEDISTRNAME in
...
@@ -67,7 +67,7 @@ case $BASEDISTRNAME in
info
info
docmd epm remove
$dryrun
$force
$(
subst_option non_interactive
--auto
)
$PKGLIST
docmd epm remove
$dryrun
$force
$(
subst_option non_interactive
--auto
)
$PKGLIST
else
else
echo
"There are no orphan packages in the system."
message
"There are no orphan packages in the system."
fi
fi
return
0
return
0
;;
;;
...
...
bin/epm-autoremove
View file @
ed6f325d
...
@@ -26,7 +26,7 @@ __epm_print_excluded()
...
@@ -26,7 +26,7 @@ __epm_print_excluded()
local
excluded
local
excluded
excluded
=
"
$(
estrlist exclude
"
$pkgs
"
"
$fullpkgs
"
)
"
excluded
=
"
$(
estrlist exclude
"
$pkgs
"
"
$fullpkgs
"
)
"
if
[
-n
"
$excluded
"
]
;
then
if
[
-n
"
$excluded
"
]
;
then
echo
"Skipped manually installed:"
message
"Skipped manually installed:"
estrlist union
$excluded
estrlist union
$excluded
fi
fi
}
}
...
@@ -204,10 +204,10 @@ __epm_autoremove_altrpm()
...
@@ -204,10 +204,10 @@ __epm_autoremove_altrpm()
epm_autoremove_print_help
()
epm_autoremove_print_help
()
{
{
echo
"epm autoremove removes unneeded packages from the system"
message
'epm autoremove removes unneeded packages from the system
echo
"run 'epm autoremove' to use apt-get autoremove"
run epm autoremove to use apt-get autoremove
echo
"or run 'epm autoremove --direct [group1] [group2] ...' to use epm implementation"
or run epm autoremove --direct [group1] [group2] ... to use epm implementation
echo
"Default groups:
$epm_autoremove_default_groups
"
Default groups: $epm_autoremove_default_groups'
message
'
message
'
Supported package groups:
Supported package groups:
libs - unused libraries
libs - unused libraries
...
...
bin/epm-check_updated_repo
View file @
ed6f325d
...
@@ -42,7 +42,7 @@ __epm_check_apt_db_days()
...
@@ -42,7 +42,7 @@ __epm_check_apt_db_days()
# note: duplicate __is_repo_info_downloaded
# note: duplicate __is_repo_info_downloaded
pkglists
=
$(
find
$LISTS
-name
"*_
$pkg
*"
2>/dev/null
)
pkglists
=
$(
find
$LISTS
-name
"*_
$pkg
*"
2>/dev/null
)
[
-n
"
$pkglists
"
]
&&
return
[
-n
"
$pkglists
"
]
&&
return
echo
"never downloaded"
message
"never downloaded"
return
1
return
1
fi
fi
...
@@ -60,11 +60,11 @@ __epm_check_apt_db_days()
...
@@ -60,11 +60,11 @@ __epm_check_apt_db_days()
local
now
=
$(
date
+%s
)
local
now
=
$(
date
+%s
)
local
days
=
"
$((
(
now
-
ts
)
/
(
60
*
60
*
24
)
))
"
local
days
=
"
$((
(
now
-
ts
)
/
(
60
*
60
*
24
)
))
"
[
"
$days
"
=
"0"
]
&&
return
0
[
"
$days
"
=
"0"
]
&&
return
0
[
"
$days
"
=
"1"
]
&&
echo
"1 day old"
&&
return
1
[
"
$days
"
=
"1"
]
&&
message
"1 day old"
&&
return
1
echo
"
$days
days old"
message
'$days days old'
else
else
# no any pkglist
# no any pkglist
echo
"stalled"
message
"stalled"
fi
fi
return
1
return
1
}
}
...
...
bin/epm-checksystem
View file @
ed6f325d
...
@@ -27,12 +27,12 @@ __alt_fix_triggers()
...
@@ -27,12 +27,12 @@ __alt_fix_triggers()
assure_exists
time
assure_exists
time
touch
$TDIR
/added
touch
$TDIR
/added
for
ft
in
$(
ls
/usr/lib/rpm/
*
.filetrigger |
sort
)
;
do
for
ft
in
$(
ls
/usr/lib/rpm/
*
.filetrigger |
sort
)
;
do
echo
"Try run
$ft
..."
message
"Try run
$ft
..."
echo
$TDIR
/added
$TDIR
/removed |
a
=
''
time
$ft
echo
$TDIR
/added
$TDIR
/removed |
a
=
''
time
$ft
done
done
rm
-f
$TDIR
/added fatal
rm
-f
$TDIR
/added fatal
rmdir
$TDIR
||
fatal
rmdir
$TDIR
||
fatal
echo
"Count lines:"
message
"Count lines:"
wc
-l
/var/lib/rpm/files-awaiting-filetriggers
wc
-l
/var/lib/rpm/files-awaiting-filetriggers
}
}
...
...
bin/epm-dedup
View file @
ed6f325d
...
@@ -36,7 +36,7 @@ try_fix_apt_rpm_dupls()
...
@@ -36,7 +36,7 @@ try_fix_apt_rpm_dupls()
local
todel
=
"
$(
rpm
-q
$pkg
|
head
-n1
)
"
local
todel
=
"
$(
rpm
-q
$pkg
|
head
-n1
)
"
local
todel2
=
"
$(
rpm
-q
$pkg
|
head
-n2
|
tail
-n1
)
"
local
todel2
=
"
$(
rpm
-q
$pkg
|
head
-n2
|
tail
-n1
)
"
if
[
"
$todel
"
=
"
$todel2
"
]
;
then
if
[
"
$todel
"
=
"
$todel2
"
]
;
then
echo
"Fix the same name duplicates for
$pkg
..."
message
"Fix the same name duplicates for
$pkg
..."
sudocmd rpm
-e
"
$todel
"
--allmatches
--nodeps
--justdb
&&
epm
install
$pkg
&&
continue
sudocmd rpm
-e
"
$todel
"
--allmatches
--nodeps
--justdb
&&
epm
install
$pkg
&&
continue
fi
fi
# first use older package
# first use older package
...
...
bin/epm-download
View file @
ed6f325d
...
@@ -188,13 +188,13 @@ __epm_print_url_alt_check()
...
@@ -188,13 +188,13 @@ __epm_print_url_alt_check()
quiet
=
1
quiet
=
1
local
buildtime
=
$(
paoapi packages/
$pkg
| get_pao_var buildtime
)
local
buildtime
=
$(
paoapi packages/
$pkg
| get_pao_var buildtime
)
echo
echo
echo
"Latest release:
$(
paoapi packages/
$pkg
| get_pao_var sourcepackage
)
$buildtime
"
message
'Latest release:'
$(
paoapi packages/
$pkg
| get_pao_var sourcepackage
)
$buildtime
__epm_print_url_alt
"
$1
"
|
while
read
url
;
do
__epm_print_url_alt
"
$1
"
|
while
read
url
;
do
eget
--get-response
$url
>
$tm
||
{
echo
"
$url
: missed"
;
continue
;
}
eget
--get-response
$url
>
$tm
||
{
echo
"
$url
: missed"
;
continue
;
}
local
http
=
$(
cat
$tm
|
grep
"^HTTP"
|
sed
-e
"s|
\r
||g"
)
local
http
=
$(
cat
$tm
|
grep
"^HTTP"
|
sed
-e
"s|
\r
||g"
)
local
lastdate
=
$(
cat
$tm
|
grep
"^Last-Modified:"
|
sed
-e
"s|
\r
||g"
)
local
lastdate
=
$(
cat
$tm
|
grep
"^Last-Modified:"
|
sed
-e
"s|
\r
||g"
)
local
size
=
$(
cat
$tm
|
grep
"^Content-Length:"
|
sed
-e
"s|^Content-Length: ||g"
|
sed
-e
"s|
\r
||g"
)
local
size
=
$(
cat
$tm
|
grep
"^Content-Length:"
|
sed
-e
"s|^Content-Length: ||g"
|
sed
-e
"s|
\r
||g"
)
echo
"
$url
(
$http
$lastdate
)
Size:
$size
"
echo
"
$url
(
$http
$lastdate
)
$(
message
"Size:"
)
$size
"
done
done
rm
-f
$tm
rm
-f
$tm
}
}
...
...
bin/epm-epm_install
View file @
ed6f325d
...
@@ -103,7 +103,7 @@ __epm_korinf_install_eepm()
...
@@ -103,7 +103,7 @@ __epm_korinf_install_eepm()
epm_epm_install_help
()
epm_epm_install_help
()
{
{
echo
"epm ei [URL] [packages] - install packages from EPM based Korinf repository"
message
"epm ei [URL] [packages] - install packages from EPM based Korinf repository"
get_help HELPCMD
$SHAREDIR
/epm-epm_install
get_help HELPCMD
$SHAREDIR
/epm-epm_install
message
'
message
'
...
...
bin/epm-history
View file @
ed6f325d
...
@@ -64,7 +64,7 @@ _alt_epm_history_print_group()
...
@@ -64,7 +64,7 @@ _alt_epm_history_print_group()
__alt_epm_history_removed
()
__alt_epm_history_removed
()
{
{
echo
"Removed packages history:"
message
"Removed packages history:"
__alt_epm_history_uniq |
while
read
pid
;
do
__alt_epm_history_uniq |
while
read
pid
;
do
date
=
"
$(
_alt_epm_history_date
$pid
)
"
date
=
"
$(
_alt_epm_history_date
$pid
)
"
removed
=
"
$(
epm print shortname
for
$(
__alt_epm_history_select
$pid
"removed"
)
)
"
removed
=
"
$(
epm print shortname
for
$(
__alt_epm_history_select
$pid
"removed"
)
)
"
...
@@ -75,7 +75,7 @@ __alt_epm_history_removed()
...
@@ -75,7 +75,7 @@ __alt_epm_history_removed()
__alt_epm_history_installed
()
__alt_epm_history_installed
()
{
{
echo
"Installed packages history:"
message
"Installed packages history:"
__alt_epm_history_uniq |
while
read
pid
;
do
__alt_epm_history_uniq |
while
read
pid
;
do
date
=
"
$(
_alt_epm_history_date
$pid
)
"
date
=
"
$(
_alt_epm_history_date
$pid
)
"
#epm print shortname for $(__alt_epm_history_select $pid "installed") | sed -e "s|^| |"
#epm print shortname for $(__alt_epm_history_select $pid "installed") | sed -e "s|^| |"
...
@@ -87,7 +87,7 @@ __alt_epm_history_installed()
...
@@ -87,7 +87,7 @@ __alt_epm_history_installed()
__alt_epm_history_updated
()
__alt_epm_history_updated
()
{
{
echo
"Updated packages history:"
message
"Updated packages history:"
__alt_epm_history_uniq |
while
read
pid
;
do
__alt_epm_history_uniq |
while
read
pid
;
do
date
=
"
$(
_alt_epm_history_date
$pid
)
"
date
=
"
$(
_alt_epm_history_date
$pid
)
"
#epm print shortname for $(__alt_epm_history_select $pid "installed") | sed -e "s|^| |"
#epm print shortname for $(__alt_epm_history_select $pid "installed") | sed -e "s|^| |"
...
@@ -99,7 +99,7 @@ __alt_epm_history_updated()
...
@@ -99,7 +99,7 @@ __alt_epm_history_updated()
epm_history_help
()
epm_history_help
()
{
{
echo
"package management history"
message
"package management history"
get_help HELPCMD
$SHAREDIR
/epm-history
get_help HELPCMD
$SHAREDIR
/epm-history
message
'
message
'
Examples:
Examples:
...
...
bin/epm-kernel_update
View file @
ed6f325d
...
@@ -46,7 +46,7 @@ epm_kernel_update()
...
@@ -46,7 +46,7 @@ epm_kernel_update()
docmd epm
install
kernel
docmd epm
install
kernel
;;
;;
apt-
*
)
apt-
*
)
echo
"Skipping: kernel package will update during dist-upgrade"
message
"Skipping: kernel package will update during dist-upgrade"
;;
;;
*
)
*
)
fatal
"Have no suitable command for
$PMTYPE
"
fatal
"Have no suitable command for
$PMTYPE
"
...
...
bin/epm-mark
View file @
ed6f325d
...
@@ -319,7 +319,7 @@ esac
...
@@ -319,7 +319,7 @@ esac
epm_mark_help
()
epm_mark_help
()
{
{
echo
"mark is the interface for marking packages"
message
"mark is the interface for marking packages"
get_help HELPCMD
$SHAREDIR
/epm-mark
get_help HELPCMD
$SHAREDIR
/epm-mark
message
'
message
'
Examples:
Examples:
...
...
bin/epm-packages
View file @
ed6f325d
...
@@ -21,7 +21,7 @@ load_helper epm-sh-warmup
...
@@ -21,7 +21,7 @@ load_helper epm-sh-warmup
__epm_packages_help
()
__epm_packages_help
()
{
{
echo
"package management list"
message
"package management list"
get_help HELPCMD
$SHAREDIR
/epm-packages
get_help HELPCMD
$SHAREDIR
/epm-packages
message
'
message
'
Examples:
Examples:
...
...
bin/epm-prescription
View file @
ed6f325d
...
@@ -34,7 +34,7 @@ Options:
...
@@ -34,7 +34,7 @@ Options:
fi
fi
if
[
"
$1
"
=
"--list-all"
]
||
[
-z
"
$*
"
]
;
then
if
[
"
$1
"
=
"--list-all"
]
||
[
-z
"
$*
"
]
;
then
[
-n
"
$short
"
]
||
[
-n
"
$quiet
"
]
||
echo
"Run with a name of a prescription to run:"
[
-n
"
$short
"
]
||
[
-n
"
$quiet
"
]
||
message
"Run with a name of a prescription to run:"
__epm_play_list
$psdir
__epm_play_list
$psdir
exit
exit
fi
fi
...
...
bin/epm-release_upgrade
View file @
ed6f325d
...
@@ -24,12 +24,12 @@ load_helper epm-reposave
...
@@ -24,12 +24,12 @@ load_helper epm-reposave
assure_safe_run
()
assure_safe_run
()
{
{
if
[
"
$TERM
"
=
"linux"
]
;
then
if
[
"
$TERM
"
=
"linux"
]
;
then
echo
"You have the best choise to run the '# epm release-upgrade' from text console."
message
"You have the best choise to run the '# epm release-upgrade' from text console."
return
return
fi
fi
if
[
"
$TERM
"
!=
"screen"
]
;
then
if
[
"
$TERM
"
!=
"screen"
]
;
then
if
[
-n
"
$force
"
]
;
then
if
[
-n
"
$force
"
]
;
then
echo
"You force me running not under screen (TERM=
$TERM
now)! You can lost your system!"
message
"You force me running not under screen (TERM=
$TERM
now)! You can lost your system!"
return
return
else
else
warning
"It is very dangerous to upgrade to next release from a GUI (your TERM=
$TERM
)."
warning
"It is very dangerous to upgrade to next release from a GUI (your TERM=
$TERM
)."
...
@@ -50,7 +50,7 @@ assure_safe_run()
...
@@ -50,7 +50,7 @@ assure_safe_run()
res
=
"
$(
busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager KillUserProcesses
)
"
res
=
"
$(
busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager KillUserProcesses
)
"
if
[
"
$res
"
=
"b false"
]
;
then
if
[
"
$res
"
=
"b false"
]
;
then
echo
"Good news: systemd-logind will not kill your screen processes (KillUserProcesses=false)"
message
"Good news: systemd-logind will not kill your screen processes (KillUserProcesses=false)"
return
return
else
else
if
[
-n
"
$force
"
]
;
then
if
[
-n
"
$force
"
]
;
then
...
...
bin/epm-repack
View file @
ed6f325d
...
@@ -236,7 +236,7 @@ epm_repack()
...
@@ -236,7 +236,7 @@ epm_repack()
cp
$repacked_pkgs
"
$EPMCURDIR
"
cp
$repacked_pkgs
"
$EPMCURDIR
"
if
[
-z
"
$quiet
"
]
;
then
if
[
-z
"
$quiet
"
]
;
then
echo
echo
echo
"Adapted packages:"
message
"Adapted packages:"
for
i
in
$repacked_pkgs
;
do
for
i
in
$repacked_pkgs
;
do
echo
"
$EPMCURDIR
/
$(
basename
"
$i
"
)
"
echo
"
$EPMCURDIR
/
$(
basename
"
$i
"
)
"
done
done
...
...
bin/epm-repo-addkey
View file @
ed6f325d
...
@@ -176,7 +176,7 @@ epm_addkey()
...
@@ -176,7 +176,7 @@ epm_addkey()
{
{
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
||
[
-z
"
$1
"
]
;
then
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
||
[
-z
"
$1
"
]
;
then
echo
"Usage:
$
epm repo addkey [name] [url] [fingerprint/gpgkey] [comment/name]"
message
"Usage:
$
epm repo addkey [name] [url] [fingerprint/gpgkey] [comment/name]"
return
return
fi
fi
...
...
bin/epm-tool
View file @
ed6f325d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
epm_tool_help
()
epm_tool_help
()
{
{
echo
"Tools embedded in epm:"
message
"Tools embedded in epm:"
get_help HELPCMD
$SHAREDIR
/epm-tool
get_help HELPCMD
$SHAREDIR
/epm-tool
message
'
message
'
...
...
bin/esu
View file @
ed6f325d
...
@@ -50,10 +50,10 @@ load_helper epm-sh-functions
...
@@ -50,10 +50,10 @@ load_helper epm-sh-functions
esu_print_help
()
esu_print_help
()
{
{
message
'
cat
<<
EOF
esu - get root shell or run a command in root shell
esu - get root shell or run a command in root shell
Usage: esu [-c] [<command>]
Usage: esu [-c] [<command>]
'
EOF
}
}
...
...
bin/serv
View file @
ed6f325d
...
@@ -112,6 +112,7 @@ is_anyservice()
...
@@ -112,6 +112,7 @@ is_anyservice()
}
}
phelp
()
phelp
()
{
{
echo
"
$Descr
echo
"
$Descr
...
@@ -140,6 +141,7 @@ progname="${0##*/}"
...
@@ -140,6 +141,7 @@ progname="${0##*/}"
Usage
=
"Usage:
$progname
[options] [<service>] [<command>] [params]..."
Usage
=
"Usage:
$progname
[options] [<service>] [<command>] [params]..."
Descr
=
"serv - Service manager"
Descr
=
"serv - Service manager"
set_service_type
set_service_type
verbose
=
verbose
=
...
...
bin/tools_eget
View file @
ed6f325d
...
@@ -359,7 +359,7 @@ set_quiet()
...
@@ -359,7 +359,7 @@ set_quiet()
eget_help
()
eget_help
()
{
{
message
'
cat
<<
EOF
eget - wget like downloader wrapper with wildcard support in filename part of URL
eget - wget like downloader wrapper with wildcard support in filename part of URL
Usage: eget [options] http://somesite.ru/dir/na*.log
Usage: eget [options] http://somesite.ru/dir/na*.log
...
@@ -407,11 +407,11 @@ Examples:
...
@@ -407,11 +407,11 @@ Examples:
$
eget -O myname ipfs://QmVRUjnsnxHWkjq91KreCpUk4D9oZEbMwNQ3rzdjwND5dR
$
eget -O myname ipfs://QmVRUjnsnxHWkjq91KreCpUk4D9oZEbMwNQ3rzdjwND5dR
$
eget --list http://ftp.somesite.ru/package-*.tar
$
eget --list http://ftp.somesite.ru/package-*.tar
$
eget --check-url http://ftp.somesite.ru/test
$
eget --check-url http://ftp.somesite.ru/test
$ eget --list http://download.somesite.ru "package-*.tar.xz"
$
eget --list http://download.somesite.ru 'package-*.tar.xz'
$ eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.*.tar.xz"
$
eget --list --latest https://github.com/telegramdesktop/tdesktop/releases 'tsetup.*.tar.xz'
'
}
EOF
}
if
[
-z
"
$1
"
]
;
then
if
[
-z
"
$1
"
]
;
then
echo
"eget - wget like downloader wrapper with wildcard support, uses wget or curl as backend"
>
&2
echo
"eget - wget like downloader wrapper with wildcard support, uses wget or curl as backend"
>
&2
...
@@ -1206,7 +1206,6 @@ url_get_filename()
...
@@ -1206,7 +1206,6 @@ url_get_filename()
fi
fi
if
[
-n
"
$ipfs_mode
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
&&
!
is_ipfsurl
"
$1
"
;
then
if
[
-n
"
$ipfs_mode
"
]
&&
[
-n
"
$EGET_IPFS_DB
"
]
&&
!
is_ipfsurl
"
$1
"
;
then
download_to_ipfs
()
download_to_ipfs
()
...
...
bin/tools_erc
View file @
ed6f325d
...
@@ -393,4 +393,3 @@ case $cmd in
...
@@ -393,4 +393,3 @@ case $cmd in
fatal
"Unknown command
$1
"
fatal
"Unknown command
$1
"
;;
;;
esac
esac
bin/tools_json
View file @
ed6f325d
...
@@ -27,6 +27,7 @@ usage() {
...
@@ -27,6 +27,7 @@ usage() {
echo
echo
}
}
parse_options
()
{
parse_options
()
{
set
--
"
$@
"
set
--
"
$@
"
local
ARGN
=
$#
local
ARGN
=
$#
...
...
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