| Summary: | urpmq --whatrequires doesn't work with virtual provides | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | David Walser <luigiwalser> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | minor | ||
| Priority: | Normal | CC: | lmenut, n3npq |
| Version: | 1 | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | urpmi-6.40-9.mga1.src.rpm | CVE: | |
| Status comment: | |||
|
Description
David Walser
2011-12-31 19:19:03 CET
Hi, thanks for reporting this bug. Assigned to the package maintainer. (Please set the status to 'assigned' if you are working on it) Keywords:
(none) =>
Triaged
Thierry Vignaud
2012-01-06 19:04:23 CET
Severity:
normal =>
minor "urpmq --whatprovides" != "urpmq --whatrequires" Status:
NEW =>
RESOLVED Which makes for a logical imbalance. Status:
RESOLVED =>
REOPENED I don't know how easy it would be to fix, but there are valid reasons for wanting to make this sort of query. Granted, it is nice that you can use the package name and get any packages that require it either directly or through one of its provides, but still it would be nice to fix this if possible. I don't understand what you want to fix. "urpmq --whatprovides foobar" nicely returns all the packages providing foobar "urpmq --whatrequires foobar" nicely returns all the packages providing foobar (nothing for jasper5) If you don't believe me, just look at the raw synthesis, nothing requires jasper5. Period. This works nicely for eg: coreutils Status:
REOPENED =>
RESOLVED Thierry, I confirm that "urpmq --whatrequires" with virtual provides doesn't give the result that we might expect.
coreutils isn't a good example here, because it's a package name.
Could you try with jre or java.
e.g. in mga2:
LC_ALL=C urpmq --whatprovides jre
java-1.5.0-gcj|java-1.7.0-openjdk|java-1.6.0-openjdk
LC_ALL=C urpmq --whatrequires jre
No package named jre
The following packages contain jre: jrefactory, jrefactory-javadoc, jrexx, jrexx-javadoc, ...
You should use "-a" to use all of them
but if I use rpm on my local mirror:
rpm -qp --queryformat '[%{NAME}-%{VERSION} %{REQUIRES}\n]' *.rpm |grep " jre$"
esmska-1.2.0 jre
fmj-20110107 jre
libreoffice-java-common-3.5.3.2 jreCC:
(none) =>
lmenut man urpmq => "urpmq --whatrequires -p jre" |