##// END OF EJS Templates
packaging: make python snippets in rpm building python3 compatible...
Mads Kiilerich -
r43648:e0812b03 stable
parent child Browse files
Show More
@@ -121,8 +121,8 b' for l in sorted(changelog, reverse=True)'
121 if prevtitle != title:
121 if prevtitle != title:
122 prevtitle = title
122 prevtitle = title
123 print
123 print
124 print title
124 print(title)
125 print "- %s" % l[3].strip()
125 print("- %s" % l[3].strip())
126 ' >> $rpmspec
126 ' >> $rpmspec
127
127
128 else
128 else
@@ -138,7 +138,7 b' def datestr(date, format):'
138 for l in sys.stdin.readlines():
138 for l in sys.stdin.readlines():
139 tok = l.split("\t")
139 tok = l.split("\t")
140 hgdate = tuple(int(v) for v in tok[0].split())
140 hgdate = tuple(int(v) for v in tok[0].split())
141 print "* %s %s\n- %s" % (datestr(hgdate, "%a %b %d %Y"), tok[1], tok[2])
141 print("* %s %s\n- %s" % (datestr(hgdate, "%a %b %d %Y"), tok[1], tok[2]))
142 ' >> $rpmspec
142 ' >> $rpmspec
143
143
144 fi
144 fi
@@ -15,7 +15,7 b''
15
15
16 %else
16 %else
17
17
18 %global pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
18 %global pythonver %(python -c 'import sys;print(".".join(map(str, sys.version_info[:2])))')
19
19
20 %endif
20 %endif
21
21
General Comments 0
You need to be logged in to leave comments. Login now