!3 texlive scanpages resolving Python3 print formatting errors
From: @dpdwaj Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
5e5a6f0674
@ -0,0 +1,43 @@
|
||||
From e6fa7d2dbfc30033a9f505e2fefa4abab5bc722d Mon Sep 17 00:00:00 2001
|
||||
From: test <test@example.com>
|
||||
Date: Thu, 25 Apr 2024 06:27:37 +0000
|
||||
Subject: [PATCH] texlive scanpages resolving Python3 print formatting errors
|
||||
|
||||
---
|
||||
doc/latex/scanpages/replicate.py | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/doc/latex/scanpages/replicate.py b/doc/latex/scanpages/replicate.py
|
||||
index 57a5978..a9af1df 100755
|
||||
--- a/doc/latex/scanpages/replicate.py
|
||||
+++ b/doc/latex/scanpages/replicate.py
|
||||
@@ -10,7 +10,7 @@ with open(filename,'r') as f:
|
||||
s='\n'.join(tmp)
|
||||
tmp=s.split("%Repetitions=")
|
||||
if len(tmp) != 2:
|
||||
- print "Bailing! The file does not contain exactly one '%Repetitions='"
|
||||
+ print("Bailing! The file does not contain exactly one '%Repetitions='")
|
||||
sys.exit()
|
||||
ss=tmp[1]
|
||||
tmp2=ss.split('\n')
|
||||
@@ -18,7 +18,7 @@ numrep=int(tmp2[0])
|
||||
#get variable names
|
||||
tmp=s.split("%Variables=")
|
||||
if len(tmp) != 2:
|
||||
- print "Bailing! The file does not contain exactly one '%Variables='"
|
||||
+ print("Bailing! The file does not contain exactly one '%Variables='")
|
||||
sys.exit()
|
||||
ss=tmp[1]
|
||||
tmp2=ss.split('\n')
|
||||
@@ -35,7 +35,7 @@ for j in range(1,n):
|
||||
vbles[j]=vbles[j].strip().replace("+",":")
|
||||
x=vbles[j].split(":")
|
||||
if len(x) != 3:
|
||||
- print "Bad variable descriptor-- " + vbles[j]
|
||||
+ print("Bad variable descriptor-- " + vbles[j])
|
||||
sys.exit
|
||||
vlst.append(x[0])
|
||||
nnn=0
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@ -4,12 +4,13 @@
|
||||
|
||||
Name: texlive-split-u
|
||||
Version: %{tl_version}
|
||||
Release: 1
|
||||
Release: 2
|
||||
Epoch: 9
|
||||
Summary: TeX formatting system
|
||||
License: Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL-1.3a and LPPL-1.3c and MIT and Public Domain and UCD and Utopia
|
||||
URL: http://tug.org/texlive/
|
||||
BuildArch: noarch
|
||||
Patch0001: texlive-scanpages-resolving-Python3-print-formatting-errors.patch
|
||||
Source0003: texlive-licenses.tar.xz
|
||||
Source1507: http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final/archive/rsc.tar.xz
|
||||
Source1508: http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final/archive/rsc.doc.tar.xz
|
||||
@ -5118,6 +5119,8 @@ done
|
||||
set -x
|
||||
|
||||
cur_dir=$PWD
|
||||
cd %{buildroot}%{_texdir}/texmf-dist
|
||||
patch -p1 < %{_sourcedir}/texlive-scanpages-resolving-Python3-print-formatting-errors.patch
|
||||
|
||||
|
||||
install -d %{buildroot}%{_datadir}/fonts
|
||||
@ -5929,6 +5932,9 @@ rm -f %{buildroot}%{_datadir}/texlive/texmf-dist/tlpkg/tlpobj/*
|
||||
%{_texdir}/texmf-dist/tex/latex/sfmath/
|
||||
|
||||
%changelog
|
||||
* Thu Apr 25 2024 Pengda Dou <doupengda@loongson.cn> - 9:2021-2
|
||||
- texlive scanpages resolving Python3 print formatting errors
|
||||
|
||||
* Wed Oct 26 2022 misaka00251 <liuxin@iscas.ac.cn> - 9:2021-1
|
||||
- Upgrade texlive version to 2021
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user