From 32eb3a27787231deba275799c2e7963673ad1922 Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Mar 16 2018 15:58:16 +0000 Subject: Fix downloading rpms in correct directory Download stable rpms into stable and update rpms into update directory. --- diff --git a/download_rpms.py b/download_rpms.py index 380c737..8e0d18b 100755 --- a/download_rpms.py +++ b/download_rpms.py @@ -20,8 +20,8 @@ def download_rpms(koji_build, stable_rpmsdir, update_rpmsdir, koji = koji_directive.KojiDirective() - log.info('Downloading rpms for %s into %s' % (koji_build, stable_rpmsdir)) - params = {'action': 'download', + log.info('Downloading latest stable rpms for %s into %s' % (koji_build, stable_rpmsdir)) + params = {'action': 'download_latest_stable', 'koji_build': koji_build, 'arch': arch, 'arch_exclude': arch_exclude, @@ -31,9 +31,9 @@ def download_rpms(koji_build, stable_rpmsdir, update_rpmsdir, arg_data = {'workdir': None} koji.process(params, arg_data) - log.info('Downloading latest stable rpms for %s into %s' % (koji_build, + log.info('Downloading rpms for %s into %s' % (koji_build, update_rpmsdir)) - params = {'action': 'download_latest_stable', + params = {'action': 'download', 'koji_build': koji_build, 'arch': arch, 'arch_exclude': arch_exclude,