When spec has Patch: ... line it wrongly set patch number to MAXINT
instead of 0.
Change-Id: Ieb462f8068b98724a2035394b80514982168d3c8
"""provides some rpm source package related helpers"""
import commands
+import sys
import os
import re
import tempfile
# get patches
for (name, num, typ) in self.specinfo.sources:
+ # workaround rpm parsing bug
+ num == sys.maxint:
+ num = 0
# only add files of patch type
if typ == 2:
self.patches[num] = {'filename': name, 'strip': '0', 'apply': False, 'autoupdate': False}