Red Hat Bugzilla – Bug 1006508
javapackages-tools: Some POM macros silently fail on whitespaces in XML tags
Last modified: 2013-10-08 14:18:57 EDT
Description of problem:
%pom_remove_dep foo:bar should fail with "Operation on POM has no effect" with the following POM, but it silently succeeds.
But the following POM correctly causes macro failure.
Version-Release number of selected component (if applicable):
$ . /usr/share/java-utils/pom_editor.sh
$ cat 1
$ (pom_remove_dep : 1)
$ cat 2
$ (pom_remove_dep : 2)
Operation on POM has no effect.
=== Backtrace: ===
22 _pom_patch /usr/share/java-utils/pom_editor.sh
18 _pom_disable_gaid /usr/share/java-utils/pom_editor.sh
260 pom_remove_dep /usr/share/java-utils/pom_editor.sh
Tested in rawhide only, but may affect older releases too.
(In reply to Mikolaj Izdebski from comment #0)
> But the following POM correctly causes macro failure.
> <project />
There is a typo. There should be no space before the slash.
Moreover, it didn't add namespace to the empty project tag.
Should be fixed in commit bc8d9c1
Fixed in javapackages-tools-3.3.1-1
I believe that this bug is fixed in javapackages-tools-3.3.1-1,
which is available in Fedora Rawhide, so I am closing this bug now.
The build containing the fix can be found at Koji: