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
etersoft
eepm
Commits
84dd9d6f
Commit
84dd9d6f
authored
Jul 15, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm provides: add --short support for apt, separate requires by lines
parent
f060d337
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
epm-provides
bin/epm-provides
+14
-2
epm-requires
bin/epm-requires
+2
-2
No files found.
bin/epm-provides
View file @
84dd9d6f
...
...
@@ -30,7 +30,11 @@ epm_provides_files()
case
$PKGTYPE
in
rpm
)
assure_exists rpm
if
[
-n
"
$short
"
]
;
then
docmd rpm
-q
--provides
-p
$pkg_files
|
sed
-e
's| .*||'
else
docmd rpm
-q
--provides
-p
$pkg_files
fi
;;
deb
)
assure_exists dpkg
...
...
@@ -59,7 +63,11 @@ case $PMTYPE in
CMD
=
"rpm -q --provides"
else
EXTRA_SHOWDOCMD
=
' | grep "Provides:"'
docmd apt-cache show
$pkg_names
|
grep
"Provides:"
if
[
-n
"
$short
"
]
;
then
docmd apt-cache show
$pkg_names
|
grep
"Provides:"
|
sed
-e
's|, |\n|g'
-e
's|Provides: ||'
-e
's| .*||'
else
docmd apt-cache show
$pkg_names
|
grep
"Provides:"
|
sed
-e
's|, |\n|g'
-e
's|Provides: ||'
fi
return
fi
;;
...
...
@@ -118,7 +126,11 @@ case $PMTYPE in
;;
esac
docmd
$CMD
$pkg_names
if
[
-n
"
$short
"
]
;
then
docmd
$CMD
$pkg_names
|
sed
-e
's| .*||'
else
docmd
$CMD
$pkg_names
fi
}
...
...
bin/epm-requires
View file @
84dd9d6f
...
...
@@ -81,9 +81,9 @@ case $PMTYPE in
CMD
=
"apt-cache depends"
else
if
[
-n
"
$short
"
]
;
then
LANG
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs |
sed
-e
"s| .*||"
LANG
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
's|, |\n|g'
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs |
sed
-e
"s| .*||"
else
LANG
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs
LANG
=
C docmd apt-cache depends
$pkg_names
|
grep
"Depends:"
|
sed
-e
's|, |\n|g'
-e
"s|.*Depends: ||"
-e
"s|<
\(
.*
\)
>|
\1
|"
| __epm_filter_out_base_alt_reqs
fi
return
fi
...
...
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