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
54bb2d17
Commit
54bb2d17
authored
Oct 25, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use short names when possible
parent
74f3e1cb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
10 deletions
+22
-10
epm-filelist
bin/epm-filelist
+3
-2
epm-provides
bin/epm-provides
+2
-1
epm-query
bin/epm-query
+2
-1
epm-requires
bin/epm-requires
+2
-1
epm-whatdepends
bin/epm-whatdepends
+6
-2
epm-whatprovides
bin/epm-whatprovides
+7
-3
No files found.
bin/epm-filelist
View file @
54bb2d17
...
...
@@ -18,6 +18,7 @@
#
load_helper epm-query
load_helper epm-print
# TODO: port or rewrite apt-file
# https://bugzilla.altlinux.org/show_bug.cgi?id=14449
...
...
@@ -53,13 +54,13 @@ __epm_filelist_remote()
case
$PMTYPE
in
apt-rpm
)
# TODO: use RESTful interface to prometeus? See ALT bug #29496
docmd_foreach __alt_local_content_filelist
$
@
docmd_foreach __alt_local_content_filelist
$
(
print_name
$@
)
;;
apt-dpkg
)
assure_exists apt-file
||
return
# if sudo requires a password, skip autoupdate
sudo
-n
true
2>/dev/null
&&
sudocmd apt-file update
||
info
"sudo requires a password, skip apt-file update"
docmd_foreach __deb_local_content_filelist
$
@
docmd_foreach __deb_local_content_filelist
$
(
print_name
$@
)
;;
*
)
fatal
"Query filelist for non installed packages does not realized"
...
...
bin/epm-provides
View file @
54bb2d17
...
...
@@ -18,6 +18,7 @@
#
load_helper epm-query
load_helper epm-print
epm_provides_files
()
{
...
...
@@ -105,5 +106,5 @@ epm_provides()
[
-n
"
$pkg_filenames
"
]
||
fatal
"Provides: missing package(s) name"
epm_provides_files
$pkg_files
epm_provides_names
$
pkg_names
epm_provides_names
$
(
print_name
$pkg_names
)
}
bin/epm-query
View file @
54bb2d17
...
...
@@ -18,6 +18,7 @@
#
load_helper epm-packages
load_helper epm-print
_get_grep_exp
()
...
...
@@ -185,5 +186,5 @@ epm_query()
__epm_query_file
$pkg_files
||
return
__epm_query_name
$
pkg_names
||
return
__epm_query_name
$
(
print_name
$pkg_names
)
||
return
}
bin/epm-requires
View file @
54bb2d17
...
...
@@ -18,6 +18,7 @@
#
load_helper epm-query
load_helper epm-print
epm_requires_files
()
{
...
...
@@ -104,5 +105,5 @@ epm_requires()
{
[
-n
"
$pkg_filenames
"
]
||
fatal
"Requires: missing package(s) name"
epm_requires_files
$pkg_files
epm_requires_names
$
pkg_names
epm_requires_names
$
(
print_name
$pkg_names
)
}
bin/epm-whatdepends
View file @
54bb2d17
...
...
@@ -17,10 +17,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
load_helper epm-print
epm_whatdepends
()
{
local
CMD
[
-n
"
$pkg_filenames
"
]
||
fatal
"Whatdepends: missing package(s) name"
[
-n
"
$pkg_files
"
]
&&
fatal
"whatdepends do not handle files"
[
-n
"
$pkg_names
"
]
||
fatal
"whatdepends: missing package(s) name"
local
pkg
=
$(
print_name
$pkg_names
)
# by package name
case
$PMTYPE
in
...
...
@@ -48,6 +52,6 @@ case $PMTYPE in
;;
esac
docmd
$CMD
$pkg
_filenames
docmd
$CMD
$pkg
}
bin/epm-whatprovides
View file @
54bb2d17
...
...
@@ -17,10 +17,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
load_helper epm-print
epm_whatprovides
()
{
local
CMD
[
-n
"
$pkg_filenames
"
]
||
fatal
"Whatprovides: missing package(s) name"
[
-n
"
$pkg_files
"
]
&&
fatal
"whatprovides does not handle files"
[
-n
"
$pkg_names
"
]
||
fatal
"whatprovides: missing package(s) name"
local
pkg
=
$(
print_name
$pkg_names
)
# by package name
case
$PMTYPE
in
...
...
@@ -28,7 +32,7 @@ case $PMTYPE in
CMD
=
"conary repquery --what-provides"
;;
apt-rpm|apt-dpkg|aptitude-dpkg
)
LANG
=
C docmd apt-get
install
--print-uris
$pkg
_filenames
|
grep
"^Selecting"
|
cut
-f2
-d
" "
LANG
=
C docmd apt-get
install
--print-uris
$pkg
|
grep
"^Selecting"
|
cut
-f2
-d
" "
return
;;
yum-rpm
)
...
...
@@ -42,6 +46,6 @@ case $PMTYPE in
;;
esac
docmd
$CMD
$pkg
_filenames
docmd
$CMD
$pkg
}
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