]> git.pld-linux.org Git - packages/rpmlint.git/blame - revert-9f71923e.patch
rpm5 fix
[packages/rpmlint.git] / revert-9f71923e.patch
CommitLineData
f5b2d519
ER
1self.header.format("%{ARCH}") does not work in rpm5
2(partial) revert to self.header[rpm.RPMTAG_ARCH]
3
4======================================================================
5ERROR: testcheck (__main__.TestPamCheck)
6----------------------------------------------------------------------
7Traceback (most recent call last):
8 File "/home/users/glen/rpm/packages/BUILD.x86_64-linux/rpmlint-1.6/test//test.PamCheck.py", line 12, in setUp
9 self.pkg = Testing.getTestedPackage('binary/PamCheck')
10 File "/home/users/glen/rpm/packages/BUILD.x86_64-linux/rpmlint-1.6/tools/Testing.py", line 37, in getTestedPackage
11 return Pkg.Pkg(pkg_path, tempfile.gettempdir())
12 File "/home/users/glen/rpm/packages/BUILD.x86_64-linux/rpmlint-1.6/Pkg.py", line 492, in __init__
13 self.arch = self.header.format("%{ARCH}")
14TypeError: 'list' object is not callable
15
16commit 9f71923e9bfb82f52ab60ebb22a03e0c827ff1ad
17Author: Ville Skyttä <ville.skytta@iki.fi>
18Date: Sat Feb 8 22:34:50 2014 +0200
19
20Python 3 compatibility tweaks
21
22--- a/Pkg.py
23+++ b/Pkg.py
24@@ -448,8 +448,8 @@ class Pkg:
25 self.arch = 'nosrc'
26 elif self.isSource():
27 self.arch = 'src'
28 else:
29- self.arch = self.header.format("%{ARCH}")
30+ self.arch = self.header[rpm.RPMTAG_ARCH]
31
32 # Return true if the package is a source package
33 def isSource(self):
This page took 0.03519 seconds and 4 git commands to generate.