Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
pylint fix: Too many nested blocks (6/5) (too-many-nested-blocks)
Browse files Browse the repository at this point in the history
  • Loading branch information
genalt committed Oct 21, 2016
1 parent 41c6390 commit d1e4bce
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions utils/cloneByDate.py
Expand Up @@ -697,13 +697,16 @@ def process_deps(self, needed_pkgs):
log_clean(0, "%s - %s" % e)
if not self.skip_errata_depsolve:
e_pkgs = self.remote_api.get_erratum_packages(e[0])
for pkg in e_pkgs:
if self.from_label in pkg['providing_channels']:
pkg['nvrea'] = "%s-%s-%s.%s" % (pkg['name'],
pkg['version'],
pkg['release'],
pkg['arch_label'])
needed_names.add(pkg['nvrea'] )
else:
e_pkgs = []

for pkg in e_pkgs:
if self.from_label in pkg['providing_channels']:
pkg['nvrea'] = "%s-%s-%s.%s" % (pkg['name'],
pkg['version'],
pkg['release'],
pkg['arch_label'])
needed_names.add(pkg['nvrea'] )
self.remote_api.clone_errata(self.to_label, [e[0] for e in errata_set])

if len(needed_ids) > 0:
Expand Down

0 comments on commit d1e4bce

Please sign in to comment.