]>
Commit | Line | Data |
---|---|---|
f5b2d519 ER |
1 | self.header.format("%{ARCH}") does not work in rpm5 |
2 | (partial) revert to self.header[rpm.RPMTAG_ARCH] | |
3 | ||
4 | ====================================================================== | |
5 | ERROR: testcheck (__main__.TestPamCheck) | |
6 | ---------------------------------------------------------------------- | |
7 | Traceback (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}") | |
14 | TypeError: 'list' object is not callable | |
15 | ||
16 | commit 9f71923e9bfb82f52ab60ebb22a03e0c827ff1ad | |
17 | Author: Ville Skyttä <ville.skytta@iki.fi> | |
18 | Date: Sat Feb 8 22:34:50 2014 +0200 | |
19 | ||
20 | Python 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): |