Bug 837204
Summary: | %pom_xpath_remove does not work with simple queries | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Krzysztof Daniel <kdaniel> |
Component: | javapackages-tools | Assignee: | Mikolaj Izdebski <mizdebsk> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | rawhide | CC: | java-sig-commits, mbenitez, mizdebsk, sochotni |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-09 09:10:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Krzysztof Daniel
2012-07-03 07:17:52 UTC
Implicit POM namespace can't be easily implemented because of XPath limitations. POM namespace has to be specified explicitly for every node. The expression from comment #1 could be written as: %pom_xpath_remove "pom:environment/pom:os[not(text() = 'linux')]" (or similar) which is much better, but yet not perfect. As far as I know the pom: prefix can't be easily eliminated from XPath expressions. To clarify this, the following comment was added upstream: # NOTE: POM files use a specific namespace - http://maven.apache.org/POM/4.0.0. # The easiest way to respect this namespace in XPath expressions is prefixing # all node names with "pom:". For example, "pom:environment/pom:os" will work # because it selects nodes from pom namespace, but "environment/os" won't find # anything because it looks for nodes that don't belong to any XML namespace. jpackage-utils-1.7.5-18.1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/jpackage-utils-1.7.5-18.1.fc17 jpackage-utils-1.7.5-18.1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |