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
Nurlan
eepm
Commits
e5211a11
Commit
e5211a11
authored
Dec 16, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed files
parent
cfb89e96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
epm.sh
packed/epm.sh
+30
-4
serv.sh
packed/serv.sh
+1
-1
No files found.
packed/epm.sh
View file @
e5211a11
...
@@ -672,6 +672,9 @@ case $PMTYPE in
...
@@ -672,6 +672,9 @@ case $PMTYPE in
sudocmd yum remove
$PKGLIST
sudocmd yum remove
$PKGLIST
done
done
;;
;;
dnf-rpm
)
sudocmd dnf autoremove
;;
# see autoorhans
# see autoorhans
#urpm-rpm)
#urpm-rpm)
# sudocmd urpme --auto-orphans
# sudocmd urpme --auto-orphans
...
@@ -2159,6 +2162,7 @@ case $PMTYPE in
...
@@ -2159,6 +2162,7 @@ case $PMTYPE in
CMD
=
"apt-cyg list
$pkg_filenames
"
CMD
=
"apt-cyg list
$pkg_filenames
"
if
[
-z
"
$short
"
]
;
then
if
[
-z
"
$short
"
]
;
then
showcmd
$CMD
showcmd
$CMD
# TODO: fix this slow way
for
i
in
$(
$CMD
)
;
do
for
i
in
$(
$CMD
)
;
do
__aptcyg_print_full
$i
__aptcyg_print_full
$i
done
done
...
@@ -2435,7 +2439,7 @@ case $PMTYPE in
...
@@ -2435,7 +2439,7 @@ case $PMTYPE in
return
return
fi
fi
;;
;;
urpm-rpm|zypper-rpm|yum-rpm
)
urpm-rpm|zypper-rpm|yum-rpm
|dnf-rpm
)
if
is_installed
$pkg_names
;
then
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --provides"
CMD
=
"rpm -q --provides"
else
else
...
@@ -2524,12 +2528,12 @@ _query_via_packages_list()
...
@@ -2524,12 +2528,12 @@ _query_via_packages_list()
# Note: we use short=1 here due grep by ^name$
# Note: we use short=1 here due grep by ^name$
# separate first line for print out command
# separate first line for print out command
short
=
1
pkg_filenames
=
$firstpkg
epm_packages |
grep
-q
--
"
$grepexp
"
&&
quiet
=
1
pkg_filenames
=
$firstpkg
epm_packages
$firstpkg
||
res
=
1
short
=
1
pkg_filenames
=
$firstpkg
epm_packages |
grep
-q
--
"
$grepexp
"
&&
quiet
=
1
pkg_filenames
=
$firstpkg
epm_packages
||
res
=
1
local
pkg
local
pkg
for
pkg
in
"
$@
"
;
do
for
pkg
in
"
$@
"
;
do
grepexp
=
$(
_get_grep_exp
$pkg
)
grepexp
=
$(
_get_grep_exp
$pkg
)
short
=
1
pkg_filenames
=
$pkg
epm_packages 2>/dev/null |
grep
-q
--
"
$grepexp
"
&&
quiet
=
1
pkg_filenames
=
$pkg
epm_packages
$pkg
||
res
=
1
short
=
1
pkg_filenames
=
$pkg
epm_packages 2>/dev/null |
grep
-q
--
"
$grepexp
"
&&
quiet
=
1
pkg_filenames
=
$pkg
epm_packages
||
res
=
1
done
done
return
$res
return
$res
...
@@ -2871,6 +2875,7 @@ epm_query_package()
...
@@ -2871,6 +2875,7 @@ epm_query_package()
local
MGS
local
MGS
MGS
=
$(
eval
__epm_search_make_grep
$quoted_args
)
MGS
=
$(
eval
__epm_search_make_grep
$quoted_args
)
EXTRA_SHOWDOCMD
=
$MGS
EXTRA_SHOWDOCMD
=
$MGS
# Note: get all packages list and do grep
eval
"pkg_filenames= epm_packages
\"
$(
eval
get_firstarg
$quoted_args
)
\"
$MGS
"
eval
"pkg_filenames= epm_packages
\"
$(
eval
get_firstarg
$quoted_args
)
\"
$MGS
"
}
}
...
@@ -3397,7 +3402,18 @@ case $PMTYPE in
...
@@ -3397,7 +3402,18 @@ case $PMTYPE in
CMD
=
"rpm -q --requires"
CMD
=
"rpm -q --requires"
;;
;;
yum-rpm
)
yum-rpm
)
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --requires"
else
CMD
=
"yum deplist"
CMD
=
"yum deplist"
fi
;;
dnf-rpm
)
if
is_installed
$pkg_names
;
then
CMD
=
"rpm -q --requires"
else
CMD
=
"dnf repoquery --requires"
fi
;;
;;
pacman
)
pacman
)
CMD
=
"pactree"
CMD
=
"pactree"
...
@@ -3625,9 +3641,13 @@ case $PMTYPE in
...
@@ -3625,9 +3641,13 @@ case $PMTYPE in
docmd apt-file search
$pkg_filenames
docmd apt-file search
$pkg_filenames
return
;;
return
;;
yum-rpm
)
yum-rpm
)
# TODO
info
"Search by full packages list does not realized"
CMD
=
"yum provides"
CMD
=
"yum provides"
;;
;;
dnf-rpm
)
dnf-rpm
)
# TODO
info
"Search by full packages list does not realized"
CMD
=
"dnf provides"
CMD
=
"dnf provides"
;;
;;
urpm-rpm
)
urpm-rpm
)
...
@@ -4117,6 +4137,9 @@ case $PMTYPE in
...
@@ -4117,6 +4137,9 @@ case $PMTYPE in
yum-rpm
)
yum-rpm
)
CMD
=
"repoquery --whatrequires"
CMD
=
"repoquery --whatrequires"
;;
;;
dnf-rpm
)
CMD
=
"repoquery --whatrequires"
;;
emerge
)
emerge
)
assure_exists equery
assure_exists equery
CMD
=
"equery depends -a"
CMD
=
"equery depends -a"
...
@@ -4157,6 +4180,9 @@ case $PMTYPE in
...
@@ -4157,6 +4180,9 @@ case $PMTYPE in
yum-rpm
)
yum-rpm
)
CMD
=
"yum whatprovides"
CMD
=
"yum whatprovides"
;;
;;
dnf-rpm
)
CMD
=
"yum provides"
;;
zypper-rpm
)
zypper-rpm
)
CMD
=
"zypper what-provides"
CMD
=
"zypper what-provides"
;;
;;
...
@@ -4513,7 +4539,7 @@ $(get_help HELPOPT)
...
@@ -4513,7 +4539,7 @@ $(get_help HELPOPT)
print_version
()
print_version
()
{
{
echo
"EPM package manager version 1.5.2
4
"
echo
"EPM package manager version 1.5.2
5
"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Running on
$(
$DISTRVENDOR
)
('
$PMTYPE
' package manager uses '
$PKGFORMAT
' package format)"
echo
"Copyright (c) Etersoft 2012-2015"
echo
"Copyright (c) Etersoft 2012-2015"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
packed/serv.sh
View file @
e5211a11
...
@@ -1186,7 +1186,7 @@ $(get_help HELPOPT)
...
@@ -1186,7 +1186,7 @@ $(get_help HELPOPT)
print_version
()
print_version
()
{
{
echo
"Service manager version 1.5.2
4
"
echo
"Service manager version 1.5.2
5
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Running on
$(
$DISTRVENDOR
)
"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"Copyright (c) Etersoft 2012, 2013"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
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