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
c12c585e
Commit
c12c585e
authored
Jun 07, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update packed scripts
parent
0c37676c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
7 deletions
+34
-7
epm.sh
packed/epm.sh
+27
-6
serv.sh
packed/serv.sh
+7
-1
No files found.
packed/epm.sh
View file @
c12c585e
...
...
@@ -261,6 +261,12 @@ set_sudo()
SUDO
=
"fatal 'Can't find sudo. Please install sudo or run epm under root.'"
}
withtimeout
()
{
local
TO
=
$(
which
timeout
2>/dev/null
||
which gtimeout 2>/dev/null
)
[
-n
"
$TO
"
]
&&
$TO
$@
||
$@
}
set_eatmydata
()
{
# skip if disabled
...
...
@@ -866,7 +872,7 @@ case $PMTYPE in
slackpkg
)
;;
pkgng
)
sudo
pkg clean
sudo
cmd pkg clean
-a
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
...
...
@@ -1775,7 +1781,11 @@ case $PMTYPE in
return
;;
pkgng
)
CMD
=
"pkg info -E
$pkg_filenames
"
if
[
-n
"
$pkg_filenames
"
]
;
then
CMD
=
"pkg info -E
$pkg_filenames
"
else
CMD
=
"pkg info"
fi
if
[
-n
"
$short
"
]
;
then
docmd
$CMD
|
sed
-e
"s| .*||g"
|
sed
-e
"s|-[0-9].*||g"
else
...
...
@@ -1835,11 +1845,19 @@ docmd $CMD
epm_programs
()
{
local
DESKTOPDIR
=
/usr/share/applications
case
$DISTRNAME
in
FreeBSD|NetBSD|OpenBSD|Solaris
)
local
DESKTOPDIR
=
/usr/local/share/applications
;;
*
)
local
DESKTOPDIR
=
/usr/share/applications
;;
esac
[
-d
"
$DESKTOPDIR
"
]
||
fatal
"There is no
$DESKTOPDIR
dir on the system."
#find /usr/share/applications -type f -name "*.desktop" | while read f; do pkg_files="$f" quiet=1 short=1 epm_query_file ; done | sort -u
showcmd
"find
$DESKTOPDIR
-type f -name "
*
.desktop
" | xargs
$0
-qf --quiet --short | sort -u"
find
/usr/share/applications
-type
f
-name
"*.desktop"
|
\
find
$DESKTOPDIR
-type
f
-name
"*.desktop"
|
\
xargs
$0
-qf
--quiet
--short
|
sort
-u
}
...
...
@@ -2267,6 +2285,9 @@ epm_reinstall_names()
dnf-rpm
)
sudocmd dnf reinstall
$@
return
;;
pkgng
)
sudocmf pkg
install
-f
$@
return
;;
slackpkg
)
sudocmd_foreach
"/usr/sbin/slackpkg reinstall"
$@
return
;;
...
...
@@ -3667,7 +3688,7 @@ $(get_help HELPOPT)
print_version
()
{
echo
"EPM package manager version 1.5.
4
"
echo
"EPM package manager version 1.5.
5
"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2014"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
@@ -3935,7 +3956,7 @@ done
# if input is not console, get pkg from it too
if
!
inputisatty
;
then
for
opt
in
$(
timeout
1
cat
2>/dev/null
)
;
do
for
opt
in
$(
withtimeout 1
cat
)
;
do
check_filenames
$opt
done
fi
...
...
packed/serv.sh
View file @
c12c585e
...
...
@@ -259,6 +259,12 @@ set_sudo()
SUDO
=
"fatal 'Can't find sudo. Please install sudo or run epm under root.'"
}
withtimeout
()
{
local
TO
=
$(
which
timeout
2>/dev/null
||
which gtimeout 2>/dev/null
)
[
-n
"
$TO
"
]
&&
$TO
$@
||
$@
}
set_eatmydata
()
{
# skip if disabled
...
...
@@ -1112,7 +1118,7 @@ $(get_help HELPOPT)
print_version
()
{
echo
"Service manager version 1.5.
4
"
echo
"Service manager version 1.5.
5
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
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