Bug 2014227 - xml2po -o -p option does not work
Summary: xml2po -o -p option does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-doc-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-14 16:23 UTC by Mamoru TASAKA
Modified: 2021-10-29 23:06 UTC (History)
8 users (show)

Fixed In Version: gnome-doc-utils-0.20.10-27.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-29 23:06:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
gphotoframe.xml (28.35 KB, text/plain)
2021-10-14 16:24 UTC, Mamoru TASAKA
no flags Details
ja.po (38.16 KB, text/plain)
2021-10-14 16:24 UTC, Mamoru TASAKA
no flags Details

Description Mamoru TASAKA 2021-10-14 16:23:33 UTC
Description of problem:

Well, when building gphotoframe:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1844871

looking at build.log carefully, I've noticed that "xml2po -o foo -p bar baz"
was not working. Perhaps this issue existed for some long time. 

Version-Release number of selected component (if applicable):
gnome-doc-utils-0.20.10-26.fc35.noarch

How reproducible:
100%

Steps to Reproduce:
1. xml2po -p ja.po -o tmp.xml ./gphotoframe.xml
2.
3.

Actual results:
$ xml2po -p ja.po -o tmp.xml ./gphotoframe.xml 
Traceback (most recent call last):
  File "/bin/xml2po", line 191, in <module>
    main(sys.argv[1:])
  File "/bin/xml2po", line 160, in main
    xml2po_main = Main(default_mode, operation, output, options)
  File "/usr/lib/python3.10/site-packages/xml2po/__init__.py", line 559, in __init__
    self.out = file(output, 'w')
NameError: name 'file' is not defined. Did you mean: 'filter'?

Comment 1 Mamoru TASAKA 2021-10-14 16:24:26 UTC
Created attachment 1833042 [details]
gphotoframe.xml

Comment 2 Mamoru TASAKA 2021-10-14 16:24:58 UTC
Created attachment 1833043 [details]
ja.po

Comment 4 Fedora Update System 2021-10-14 16:40:05 UTC
FEDORA-2021-5a0204886b has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5a0204886b

Comment 5 Fedora Update System 2021-10-14 18:55:26 UTC
FEDORA-2021-5a0204886b has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-5a0204886b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-5a0204886b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-10-29 23:06:13 UTC
FEDORA-2021-5a0204886b has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


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