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
675c1be6
Commit
675c1be6
authored
Oct 16, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix epm repo --help
parent
a4fc45b0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
19 deletions
+20
-19
epm
bin/epm
+1
-1
epm-assure
bin/epm-assure
+0
-16
epm-repo
bin/epm-repo
+1
-1
epm-sh-functions
bin/epm-sh-functions
+18
-1
No files found.
bin/epm
View file @
675c1be6
...
...
@@ -259,7 +259,7 @@ check_command()
repofix
)
# HELPCMD: <mirror>: fix paths in sources lists (ALT Linux only). use repofix etersoft/yandex/basealt for rewrite URL to the specified server
epm_cmd
=
repofix
;;
removerepo|rr
)
# HELPCMD: remove package repo
removerepo|rr
)
# HELPCMD: remove package repo
(shortcut for epm repo remove)
epm_cmd
=
removerepo
;;
repo
)
# HELPCMD: manipulate with repository list (run epm repo --help to help)
...
...
bin/epm-assure
View file @
675c1be6
...
...
@@ -22,22 +22,6 @@ __check_command_in_path()
PATH
=
$PATH
:/sbin:/usr/sbin which
"
$1
"
2>/dev/null
}
# copied from strings
# CHECKME: the same like estrlist has ?
# Note: used egrep! write '[0-9]+(first|two)', not '[0-9]\+...'
rhas
()
{
echo
"
$1
"
|
grep
-E
-q
--
"
$2
"
}
# copied from strings
is_dirpath
()
{
[
"
$1
"
=
"."
]
&&
return
$?
rhas
"
$1
"
"/"
}
__epm_need_update
()
{
local
PACKAGE
=
"
$1
"
...
...
bin/epm-repo
View file @
675c1be6
...
...
@@ -26,7 +26,7 @@ epm_repo()
shift
case
$CMD
in
"-h"
|
"--help"
|
help
)
# HELPCMD: help
get_help HELPCMD epm-repo
get_help HELPCMD
$SHAREDIR
/
epm-repo
;;
""
|
list
)
# HELPCMD: list packages
load_helper epm-repolist
...
...
bin/epm-sh-functions
View file @
675c1be6
...
...
@@ -181,6 +181,21 @@ isnumber()
echo
"
$*
"
| filter_strip_spaces |
grep
-q
"^[0-9]
\+
$"
}
# copied from strings
# CHECKME: the same like estrlist has ?
# Note: used egrep! write '[0-9]+(first|two)', not '[0-9]\+...'
rhas
()
{
echo
"
$1
"
|
grep
-E
-q
--
"
$2
"
}
# copied from strings
is_dirpath
()
{
[
"
$1
"
=
"."
]
&&
return
$?
rhas
"
$1
"
"/"
}
filter_strip_spaces
()
{
# possible use just
...
...
@@ -452,7 +467,9 @@ get_help()
return
fi
local
F
=
"
$0
"
[
-n
"
$2
"
]
&&
F
=
"
$(
dirname
$0
)
/
$2
"
if
[
-n
"
$2
"
]
;
then
is_dirpath
"
$2
"
&&
F
=
"
$2
"
||
F
=
"
$(
dirname
$0
)
/
$2
"
fi
cat
"
$F
"
|
grep
--
"#
$1
"
|
while
read
-r
n
;
do
if
echo
"
$n
"
|
grep
-q
"#
$1
: PART: "
;
then
...
...
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