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
968ccfe1
Commit
968ccfe1
authored
Jun 12, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-info: add support for local rpm and deb files
parent
a2a7253a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
epm-info
bin/epm-info
+33
-10
No files found.
bin/epm-info
View file @
968ccfe1
...
...
@@ -28,19 +28,25 @@ __epm_info_rpm_low()
is_installed
$pkg_names
&&
docmd rpm
-qi
$pkg_names
&&
return
}
# TODO: separate to _files and _names parts
# implement _files part per package, not by PMTYPE (see filelist)
epm_info
()
__epm_info_by_pkgtype
()
{
[
-n
"
$pkg_files
"
]
||
return
1
# if possible, it will put pkg_urls into pkg_files or pkg_names
if
[
-n
"
$pkg_urls
"
]
;
then
load_helper epm-download
__handle_pkg_urls_to_checking
fi
[
-n
"
$pkg_filenames
"
]
||
fatal
"Info: missing package(s) name"
case
$(
get_package_type
$pkg_files
)
in
rpm
)
__epm_info_rpm_low
&&
return
;;
deb
)
docmd dpkg
-I
$pkg_files
;;
*
)
return
1
;;
esac
}
__epm_info_by_pmtype
()
{
case
$PMTYPE
in
apt-rpm
)
__epm_info_rpm_low
&&
return
...
...
@@ -122,6 +128,23 @@ case $PMTYPE in
fatal
"Have no suitable command for
$PMTYPE
"
;;
esac
}
# TODO: separate to _files and _names parts
# implement _files part per package, not by PMTYPE (see filelist)
epm_info
()
{
# if possible, it will put pkg_urls into pkg_files or pkg_names
if
[
-n
"
$pkg_urls
"
]
;
then
load_helper epm-download
__handle_pkg_urls_to_checking
fi
[
-n
"
$pkg_filenames
"
]
||
fatal
"Info: missing package(s) name"
__epm_info_by_pkgtype
||
__epm_info_by_pmtype
local
RETVAL
=
$?
...
...
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