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
ff216f8d
Commit
ff216f8d
authored
Apr 19, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add check for sed, which and grep commands
parent
c9ec915d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
epm-sh-functions
bin/epm-sh-functions
+13
-2
eepm.spec
eepm.spec
+2
-0
No files found.
bin/epm-sh-functions
View file @
ff216f8d
...
...
@@ -19,6 +19,14 @@
# copied from /etc/init.d/outformat (ALT Linux)
check_core_commands
()
{
which
--help
>
/dev/null
||
fatal
"Can't find which command (which package is missed?)"
grep
--help
>
/dev/null
||
fatal
"Can't find grep command (coreutils package is missed?)"
sed
--help
>
/dev/null
||
fatal
"Can't find sed command (sed package is missed?)"
}
# FIXME on Android: FIX ME! implement ttyname_r() bionic/libc/bionic/stubs.c:366
inputisatty
()
{
...
...
@@ -47,6 +55,8 @@ check_tty()
[
-n
"
$TERM
"
]
||
TERM
=
dumb
export
TERM
check_core_commands
# egrep from busybox may not --color
# egrep from MacOS print help to stderr
if
grep
-E
--help
2>&1 |
grep
-q
--
"--color"
;
then
...
...
@@ -364,9 +374,10 @@ withtimeout()
$TO
"
$@
"
return
fi
fatal
"Possible indefinite wait due timeout command is missed"
# fallback: drop time arg and run without timeout
shift
"
$@
"
#
shift
#
"$@"
}
set_eatmydata
()
...
...
eepm.spec
View file @
ff216f8d
...
...
@@ -29,6 +29,8 @@ Provides: epm = %EVR
Requires: apt rpm
%endif
Requires: which
%description
Etersoft EPM is the package manager for any platform
and any platform version. It provides
...
...
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