Added sources when parsing spec
authorEd Bartosh <eduard.bartosh@intel.com>
Thu, 19 Apr 2012 10:21:10 +0000 (13:21 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Tue, 8 May 2012 12:30:55 +0000 (15:30 +0300)
gbp/rpm/__init__.py

index 2b8294c88ea8b0d357a4bbbb3bf2256f9a467f53..e29c694fe9d56842117b1d6538d1d70b4d477777 100644 (file)
@@ -209,6 +209,8 @@ class SpecFile(object):
             # only add files of patch type
             if typ == 2:
                 self.patches[num] = {'filename': name, 'strip': '0', 'apply': False, 'autoupdate': False}
+            if typ == 1:
+                self.sources[num] = {'filename': name, 'num': num}
 
         # Parse info from spec file
         f = file(self.specfile)