Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #23 from upgrades-migrations/new_treeinfo_format_s…
Browse files Browse the repository at this point in the history
…upport_rhel_6

Treeinfo file renamed product section (RHEL 6)
  • Loading branch information
bocekm authored Jun 16, 2017
2 parents cd23544 + 1f0bb01 commit 1ac59ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redhat-upgrade-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ def handle_sigwinch(signum, frame):
elif not f.instrepo.gpgcheck:
# If instrepo is a Red Hat repo, add the gpg key and reload the repos
try:
if f.treeinfo.get('product', 'name') == 'Red Hat Enterprise Linux':
key = "product"
if not f.treeinfo.has_section(key):
key = "release"
if f.treeinfo.get(key, 'name') == 'Red Hat Enterprise Linux':
log.info("Reloading repos with GPG key")
args.repos.append(('gpgkey', '%s=%s' % (f.instrepo.name, rhel_gpgkey_path)))
f = setup_downloader(version=args.network,
Expand Down

0 comments on commit 1ac59ed

Please sign in to comment.