Bug 1231891 - javapackages-tools: TypeError in pom_editor.py
Summary: javapackages-tools: TypeError in pom_editor.py
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: javapackages-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-15 14:43 UTC by Michal Srb
Modified: 2015-06-16 12:04 UTC (History)
5 users (show)

Fixed In Version: javapackages-tools-4.6.0-1.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 12:04:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Srb 2015-06-15 14:43:22 UTC
Description of problem:

When trying to rebuild jetty in Rawhide (from #e60e2db), with javapackages-tools from Jenkins (javapackages-tools-4.6.0-0.49.git087a86a.noarch), I am getting:

+ /usr/bin/python3 /usr/share/java-utils/pom_editor.py pom_change_dep -r javax.transaction:javax.transaction-api org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec
Traceback (most recent call last):
  File "/usr/share/java-utils/pom_editor.py", line 638, in <module>
    macros[sys.argv[1]](*sys.argv[2:])
  File "/usr/share/java-utils/pom_editor.py", line 464, in decorated
    xml.patch(function, fnargs)
  File "/usr/share/java-utils/pom_editor.py", line 256, in patch
    function(**fnargs)
  File "/usr/share/java-utils/pom_editor.py", line 627, in pom_change_dep
    new_artifact.merge_into_xml(element)
  File "/usr/share/java-utils/pom_editor.py", line 107, in merge_into_xml
    element.append(element.makeelement(name=key, text=value))
  File "lxml.etree.pyx", line 1439, in lxml.etree._Element.makeelement (src/lxml/lxml.etree.c:49963)
TypeError: makeelement() takes at least 1 positional argument (0 given)

Comment 1 Michal Srb 2015-06-15 22:33:14 UTC
Fix in 5d9aff2, test in 1bdd3ab.

Comment 2 Michal Srb 2015-06-16 12:04:38 UTC
Fixed in Rawhide.


Note You need to log in before you can comment on or make changes to this bug.