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
59dc3319
Commit
59dc3319
authored
Nov 03, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-info: rewrite for support low level and hi level package info
parent
52c42443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
epm-info
bin/epm-info
+16
-6
No files found.
bin/epm-info
View file @
59dc3319
...
@@ -20,26 +20,36 @@
...
@@ -20,26 +20,36 @@
load_helper epm-query
load_helper epm-query
__epm_info_rpm_low
()
{
if
[
-n
"
$pkg_files
"
]
;
then
docmd rpm
-qip
$pkg_files
fi
[
-z
"
$pkg_names
"
]
&&
return
pkg_filenames
=
$pkg_names
epm_query
>
/dev/null
&&
docmd rpm
-qi
$pkg_names
&&
return
}
epm_info
()
epm_info
()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
apt-rpm
)
apt-rpm
)
if
[
-n
"
$pkg_files
"
]
;
then
__epm_info_rpm_low
&&
return
docmd rpm
-qip
$pkg_files
fi
[
-z
"
$pkg_names
"
]
&&
return
pkg_filenames
=
$pkg_names
epm_query
>
/dev/null
&&
docmd rpm
-qi
$pkg_names
&&
return
docmd apt-cache show
$pkg_names
docmd apt-cache show
$pkg_names
;;
;;
apt-dpkg
)
apt-dpkg
)
if
[
-n
"
$pkg_files
"
]
;
then
docmd dpkg
-I
$pkg_files
fi
[
-z
"
$pkg_names
"
]
&&
return
[
-z
"
$pkg_names
"
]
&&
return
pkg_filenames
=
$pkg_names
epm_query
>
/dev/null
&&
docmd dpkg
-
I
$pkg_names
&&
return
pkg_filenames
=
$pkg_names
epm_query
>
/dev/null
&&
docmd dpkg
-
p
$pkg_names
&&
return
docmd apt-cache show
$pkg_names
docmd apt-cache show
$pkg_names
;;
;;
yum-rpm
)
yum-rpm
)
__epm_info_rpm_low
&&
return
docmd yum info
$pkg_names
docmd yum info
$pkg_names
;;
;;
zypper-rpm
)
zypper-rpm
)
__epm_info_rpm_low
&&
return
docmd zypper info
$pkg_names
docmd zypper info
$pkg_names
;;
;;
pacman
)
pacman
)
...
...
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