fix -o -output parameter is invalid
(cherry picked from commit f0890acbca87159deba959fdcf1936dc9307a38d)
This commit is contained in:
parent
bc93b59040
commit
5df1ecdc96
24
fix-o-output-parameter-is-invalid.patch
Normal file
24
fix-o-output-parameter-is-invalid.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -Nur a/itstool.in b/itstool.in
|
||||||
|
--- a/itstool.in 2023-11-30 11:26:07.087559220 +0800
|
||||||
|
+++ b/itstool.in 2023-11-30 11:25:32.059559220 +0800
|
||||||
|
@@ -1560,6 +1560,7 @@
|
||||||
|
doc.output_test_data(opts.test, out)
|
||||||
|
else:
|
||||||
|
messages.output(out)
|
||||||
|
+ out.flush()
|
||||||
|
elif opts.merge is not None:
|
||||||
|
try:
|
||||||
|
translations = gettext.GNUTranslations(open(opts.merge, 'rb'))
|
||||||
|
@@ -1605,6 +1606,7 @@
|
||||||
|
if fout_is_str:
|
||||||
|
fout = open(os.path.join(fout, os.path.basename(filename)), 'wb')
|
||||||
|
fout.write(serialized)
|
||||||
|
+ fout.flush()
|
||||||
|
if fout_is_str:
|
||||||
|
fout.close()
|
||||||
|
elif opts.join is not None:
|
||||||
|
@@ -1644,3 +1646,4 @@
|
||||||
|
if isinstance(fout, string_types):
|
||||||
|
fout = open(os.path.join(fout, os.path.basename(filename)), 'w')
|
||||||
|
fout.write(doc._doc.serialize('utf-8'))
|
||||||
|
+ fout.flush()
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: itstool
|
Name: itstool
|
||||||
Version: 2.0.4
|
Version: 2.0.4
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: ITS-based XML translation tool
|
Summary: ITS-based XML translation tool
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://itstool.org/
|
URL: http://itstool.org/
|
||||||
@ -9,6 +9,7 @@ Patch0: fix-segfaults.patch
|
|||||||
Patch1: fix-Cannot-apply-preserveSpace-to-an-attribute.patch
|
Patch1: fix-Cannot-apply-preserveSpace-to-an-attribute.patch
|
||||||
Patch2: Auto-update-to-INSTALL-file.patch
|
Patch2: Auto-update-to-INSTALL-file.patch
|
||||||
Patch3: Make-DocBook-keyword-element-within-text.patch
|
Patch3: Make-DocBook-keyword-element-within-text.patch
|
||||||
|
Patch4: fix-o-output-parameter-is-invalid.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-libxml2 python3-devel git
|
BuildRequires: python3-libxml2 python3-devel git
|
||||||
@ -45,6 +46,9 @@ export PYTHON=%{__python3}
|
|||||||
%doc %{_mandir}/man1/itstool.1.gz
|
%doc %{_mandir}/man1/itstool.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 30 2023 liyanan <liyanan61@h-partners.com> - 2.0.4-9
|
||||||
|
- fix -o -output parameter is invalid
|
||||||
|
|
||||||
* Fri Nov 26 2023 fandehui fandehui@xfusion.com - 2.0.4-8
|
* Fri Nov 26 2023 fandehui fandehui@xfusion.com - 2.0.4-8
|
||||||
- Make DocBook keyword element within text
|
- Make DocBook keyword element within text
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user