Skip to content

Commit

Permalink
Merge pull request #145 from Ichimonji10/bz-1182352
Browse files Browse the repository at this point in the history
Fix a bug in task `run_errata`
  • Loading branch information
sthirugn committed Feb 10, 2015
2 parents 88da0f6 + 9612b3c commit f6fc70f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions automation_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,13 +1411,12 @@ def errata_upgrade():


def run_errata():
"""Run the errata to upgrade packages
"""Run the errata to upgrade packages.
The following environment variables affect this command
The following environment variables affect this command:
ERRATA_NUMBER
Errata number of the errata to test. Format: xxxx:xxxxx Eg: 2014:19309
PACKAGE_2
Package 2 to be used
Expand All @@ -1427,10 +1426,13 @@ def run_errata():
if errata_number is None:
print('The ERRATA_NUMBER variable should be defined')
sys.exit(1)

# See: https://bugzilla.redhat.com/show_bug.cgi?id=1182352
run('update-{0}d-settings'.format(package2))

run('{0}-setup-channel-cache'.format(package2))
run('tps-make-lists {0}'.format(errata_number))
run('{0}-cd -c {1} && {0}-upgrade'
.format(package2, errata_number))
run('{0}-make-lists {1}'.format(package2, errata_number))
run('{0}-cd -c {1} && {0}-upgrade'.format(package2, errata_number))

# After this you can see the upgraded packages
# Run `<package2>-downgrade` if you want to revert to the old packages
Expand Down

0 comments on commit f6fc70f

Please sign in to comment.