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
6890a5d6
Commit
6890a5d6
authored
Aug 25, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-whatdepends: allow --short mode, disable verbose mode by default
parent
51c4e5bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
TODO
TODO
+1
-0
epm-print
bin/epm-print
+2
-0
epm-whatdepends
bin/epm-whatdepends
+9
-2
No files found.
TODO
View file @
6890a5d6
Не воспроизводится:
epmqp --short wine
(--short удаляет всё, что больше wine (не может правильно оторвать версию)
...
...
bin/epm-print
View file @
6890a5d6
...
...
@@ -70,6 +70,8 @@ print_version_release()
echo
"
$1
"
| xargs
-n1
echo
|
sed
-e
"s|
$PKGNAMEMASK
|
\2
-
\3
|g"
}
# get package name only by package filename
# TODO: see also __epm_get_hilevel_name()
print_pkgname
()
{
local
i
...
...
bin/epm-whatdepends
View file @
6890a5d6
...
...
@@ -31,9 +31,16 @@ epm_whatdepends()
# by package name
case
$PMTYPE
in
apt-rpm
)
if
[
-
n
"
$short
"
]
;
then
if
[
-
z
"
$verbose
"
]
;
then
showcmd apt-cache whatdepends
$pkg
a
=
apt-cache whatdepends
$pkg
|
grep
"^ [^ ]"
|
sed
-e
"s|[0-9]*:||"
|
grep
-E
-v
"(i586-|-debuginfo)"
if
[
-n
"
$short
"
]
;
then
# TODO: use common converter from full name to short name
# TODO: see print_pkgname
a
=
apt-cache whatdepends
$pkg
|
grep
"^ [^ ]"
|
sed
-e
"s|[0-9]*:||"
|
grep
-E
-v
"(i586-|-debuginfo)"
|
sed
-e
's|[@:].*||'
-e
"s|-[0-9].*||g"
-e
's|^ *||'
-e
's/\.32bit//g'
else
load_helper epm-query
a
=
apt-cache whatdepends
$pkg
|
grep
"^ [^ ]"
|
sed
-e
"s|[0-9]*:||"
|
grep
-E
-v
"(i586-|-debuginfo)"
fi
return
fi
CMD
=
"apt-cache whatdepends"
...
...
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