cleanup_rings: utilize splitlines() in check_buildconfig().

This commit is contained in:
Jimmy Berry 2017-04-25 19:24:54 -05:00
parent 51c2f6e0e9
commit ce8818fd3d

View File

@ -117,7 +117,7 @@ class CleanupRings(object):
def check_buildconfig(self, project): def check_buildconfig(self, project):
url = makeurl(self.api.apiurl, ['build', project, 'standard', '_buildconfig']) url = makeurl(self.api.apiurl, ['build', project, 'standard', '_buildconfig'])
for line in http_GET(url).read().split('\n'): for line in http_GET(url).read().splitlines():
if line.startswith('Preinstall:') or line.startswith('Support:'): if line.startswith('Preinstall:') or line.startswith('Support:'):
for prein in line.split(':')[1].split(): for prein in line.split(':')[1].split():
if prein not in self.bin2src: if prein not in self.bin2src: