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
138138ea
Commit
138138ea
authored
Aug 26, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed files
parent
2d21a201
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
+26
-17
epm.sh
packed/epm.sh
+21
-12
serv.sh
packed/serv.sh
+5
-5
No files found.
packed/epm.sh
View file @
138138ea
...
...
@@ -766,7 +766,8 @@ __epm_autoremove_altrpm()
assure_exists /etc/buildreqs/files/ignore.d/apt-scripts apt-scripts
info
info
"Removing all non -devel/-debuginfo libs packages not need by anything..."
[
-n
"
$force
"
]
||
info
"You can run with --force for more deep removing"
#[ -n "$force" ] || info "You can run with --force for more deep removing"
local
force
=
force
local
flag
=
local
libexclude
=
'^lib'
...
...
@@ -776,7 +777,7 @@ __epm_autoremove_altrpm()
showcmd
"apt-cache list-nodeps | grep --
\"
$libexclude
\"
"
pkgs
=
$(
apt-cache list-nodeps |
grep
--
"
$libexclude
"
\
|
grep
-E
-v
--
"-(devel|debuginfo)$"
\
|
grep
-E
-v
--
"-(util|
tool|plugin|daemon)
"
\
|
grep
-E
-v
--
"-(util|
utils|tool|tools|plugin|daemon|help)$
"
\
|
sed
-e
"s/
\.
32bit
$/
/g"
\
|
grep
-E
-v
--
"^(libsystemd|libreoffice|libnss|libvirt-client|libvirt-daemon|eepm)"
)
[
-n
"
$pkgs
"
]
&&
sudocmd rpm
-v
-e
$pkgs
&&
flag
=
1
...
...
@@ -1023,7 +1024,7 @@ case $PMTYPE in
sudocmd pkg check
-d
-a
;;
homebrew
)
su
docmd brew doctor
docmd brew doctor
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
...
...
@@ -1846,7 +1847,7 @@ epm_install_names()
return
;;
homebrew
)
# FIXME: sudo and quote
__separate_sudocmd
"brew install"
"brew upgrade"
$@
SUDO
=
__separate_sudocmd
"brew install"
"brew upgrade"
$@
return
;;
ipkg
)
[
-n
"
$force
"
]
&&
force
=
-force-depends
...
...
@@ -1940,6 +1941,10 @@ epm_ni_install_names()
xbps
)
sudocmd xbps-install
-y
$@
return
;;
homebrew
)
# FIXME: sudo and quote
SUDO
=
__separate_sudocmd
"brew install"
"brew upgrade"
$@
return
;;
#android)
# sudocmd pm install $@
# return ;;
...
...
@@ -2187,6 +2192,10 @@ epm_print_install_command()
xbps
)
echo
"xbps-install -y
$@
"
;;
homebrew
)
# FIXME: sudo and quote
echo
"brew install
$@
"
;;
*
)
fatal
"Have no suitable appropriate install command for
$PMTYPE
"
...
...
@@ -3784,7 +3793,7 @@ epm_remove_names()
sudocmd /usr/sbin/slackpkg remove
$@
return
;;
homebrew
)
su
docmd brew remove
$@
docmd brew remove
$@
return
;;
aptcyg
)
sudocmd apt-cyg remove
$@
...
...
@@ -4813,7 +4822,7 @@ case $PMTYPE in
sudocmd packdcl detect
# get packages from MSI database
;;
homebrew
)
su
docmd brew update
docmd brew update
;;
ipkg
)
sudocmd ipkg update
...
...
@@ -4903,7 +4912,7 @@ epm_upgrade()
;;
homebrew
)
#CMD="brew upgrade"
su
docmd
"brew upgrade
`
brew outdated
`
"
docmd
"brew upgrade
`
brew outdated
`
"
return
;;
ipkg
)
...
...
@@ -5155,10 +5164,6 @@ if distro altlinux-release ; then
elif
has Citron
;
then
DISTRIB_RELEASE
=
"2.4"
fi
elif
[
`
uname
-o
`
=
"Cygwin"
]
;
then
DISTRIB_ID
=
"Cygwin"
DISTRIB_RELEASE
=
"all"
elif
distro gentoo-release
;
then
DISTRIB_ID
=
"Gentoo"
MAKEPROFILE
=
$(
readlink
$ROOTDIR
/etc/portage/make.profile 2>/dev/null
)
||
MAKEPROFILE
=
$(
readlink
$ROOTDIR
/etc/make.profile
)
...
...
@@ -5320,7 +5325,7 @@ elif [ `uname` = "SunOS" ] ; then
DISTRIB_RELEASE
=
$(
uname
-r
)
# fixme: can we detect by some file?
elif
[
`
uname
`
=
"Darwin"
]
;
then
elif
[
`
uname
-s
2>/dev/null
`
=
"Darwin"
]
;
then
DISTRIB_ID
=
"MacOS"
DISTRIB_RELEASE
=
$(
uname
-r
)
...
...
@@ -5334,6 +5339,10 @@ elif [ `uname` = "Linux" ] && [ -x $ROOTDIR/system/bin/getprop ] ; then
DISTRIB_ID
=
"Android"
DISTRIB_RELEASE
=
$(
getprop |
awk
-F
": "
'/build.version.release/ { print $2 }'
|
tr
-d
'[]'
)
elif
[
`
uname
-o
2>/dev/null
`
=
"Cygwin"
]
;
then
DISTRIB_ID
=
"Cygwin"
DISTRIB_RELEASE
=
"all"
# try use standart LSB info by default
elif
distro lsb-release
&&
[
-n
"
$DISTRIB_RELEASE
"
]
;
then
# use LSB
...
...
packed/serv.sh
View file @
138138ea
...
...
@@ -1073,10 +1073,6 @@ if distro altlinux-release ; then
elif
has Citron
;
then
DISTRIB_RELEASE
=
"2.4"
fi
elif
[
`
uname
-o
`
=
"Cygwin"
]
;
then
DISTRIB_ID
=
"Cygwin"
DISTRIB_RELEASE
=
"all"
elif
distro gentoo-release
;
then
DISTRIB_ID
=
"Gentoo"
MAKEPROFILE
=
$(
readlink
$ROOTDIR
/etc/portage/make.profile 2>/dev/null
)
||
MAKEPROFILE
=
$(
readlink
$ROOTDIR
/etc/make.profile
)
...
...
@@ -1238,7 +1234,7 @@ elif [ `uname` = "SunOS" ] ; then
DISTRIB_RELEASE
=
$(
uname
-r
)
# fixme: can we detect by some file?
elif
[
`
uname
`
=
"Darwin"
]
;
then
elif
[
`
uname
-s
2>/dev/null
`
=
"Darwin"
]
;
then
DISTRIB_ID
=
"MacOS"
DISTRIB_RELEASE
=
$(
uname
-r
)
...
...
@@ -1252,6 +1248,10 @@ elif [ `uname` = "Linux" ] && [ -x $ROOTDIR/system/bin/getprop ] ; then
DISTRIB_ID
=
"Android"
DISTRIB_RELEASE
=
$(
getprop |
awk
-F
": "
'/build.version.release/ { print $2 }'
|
tr
-d
'[]'
)
elif
[
`
uname
-o
2>/dev/null
`
=
"Cygwin"
]
;
then
DISTRIB_ID
=
"Cygwin"
DISTRIB_RELEASE
=
"all"
# try use standart LSB info by default
elif
distro lsb-release
&&
[
-n
"
$DISTRIB_RELEASE
"
]
;
then
# use LSB
...
...
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