Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
2fe3e866
Commit
2fe3e866
authored
Jun 26, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmreqs: improve multiple provides
parent
5e9b41bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
rpmreqs
bin/rpmreqs
+12
-2
No files found.
bin/rpmreqs
View file @
2fe3e866
...
...
@@ -24,7 +24,17 @@ get_rpmpkg_requires()
filter_pkgname
()
{
sed
-e
"s/^i586-//g"
|
sed
-e
"s/
\.
32bit
$/
/g"
sed
-e
"s/^i586-//g
s/
\.
32bit
$/
/g"
}
filter_multiple_provides
()
{
sed
-e
"s|/usr/bin/lpstat|cups|g
s|libldap_r-2.4.so.2|libldap|g
s|liblber-2.4.so.2|libldap|g
s|/usr/bin/wine||g
s|libwine.so.1||g"
}
convert_pkgfile_to_pkgname
()
...
...
@@ -116,7 +126,7 @@ trans_rpmdeps_to_pkgname_lav()
# FIXME: strange regexp for drop libNAME.so.NUM and perl(Package) and /bin/sh
REALPKGNAMELIST
=
$(
regexp_exclude_list
". .. /* (*"
"
$REQLIST
"
)
# FIXME: external list? Set priorities/
REQCONVLIST
=
$(
do_exclude_list
"
$REALPKGNAMELIST
"
"
$REQLIST
"
|
sed
-e
"s|/usr/bin/lpstat|cups|g"
|
sed
-e
"s|libldap_r-2.4.so.2|libldap|g"
|
sed
-e
"s|liblber-2.4.so.2|libldap|g"
)
REQCONVLIST
=
$(
do_exclude_list
"
$REALPKGNAMELIST
"
"
$REQLIST
"
|
filter_multiple_provides
)
# partially copied from aptU
#VIRTREQ=$(LANG=C apt-get install --print-uris $REQLIST 2>&1 | grep "is a virtual package provided by" | cut -f2 -d" " | sort -u)
...
...
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