projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb447e0
)
Fixed crash on Ubuntu "TypeError: cannot create rpm.spec instances"
author
Ed Bartosh
<eduard.bartosh@intel.com>
Fri, 27 Apr 2012 16:11:01 +0000
(19:11 +0300)
committer
Ed Bartosh
<eduard.bartosh@intel.com>
Tue, 8 May 2012 12:31:49 +0000
(15:31 +0300)
gbp/rpm/__init__.py
patch
|
blob
|
history
diff --git
a/gbp/rpm/__init__.py
b/gbp/rpm/__init__.py
index 177ed2bcec37df0f847e83af49a55a6024caca5d..f97ba4970b5a55e8874d0261c8ba3b79ff3855bf 100644
(file)
--- a/
gbp/rpm/__init__.py
+++ b/
gbp/rpm/__init__.py
@@
-190,7
+190,7
@@
class SpecFile(object):
marker_re = re.compile(r'^#\s+(?P<marker>>>|<<)\s+(?P<what>gbp-[^\s]+)\s*(?P<comment>.*)$')
def __init__(self, specfile):
- self.specinfo = rpm.
s
pec(specfile)
+ self.specinfo = rpm.
ts().parseS
pec(specfile)
self.name = self.specinfo.packages[0].header[rpm.RPMTAG_NAME]
self.version = self.specinfo.packages[0].header[rpm.RPMTAG_VERSION]