From 0f20daaf60e517adaf6238ddf84fd9a6b8322109 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 2 Feb 2015 10:03:49 +0100 Subject: [PATCH] Fix retrieving the RHEL channel for the package --- roles/repo2json/files/rhel_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/repo2json/files/rhel_to_json.py b/roles/repo2json/files/rhel_to_json.py index e3eaeb8401..63ba2520e3 100644 --- a/roles/repo2json/files/rhel_to_json.py +++ b/roles/repo2json/files/rhel_to_json.py @@ -161,13 +161,13 @@ def main(): for el in PATHS: - channel = os.path.basename(el) output = {'packages': {}, 'arches': []} dbfiles = find_primary_sqlite(PATHS[el]) for dbfile_xz in dbfiles: cur_fold = os.path.join(*dbfile_xz.rsplit(os.sep, 2)[:-2]) + channel = os.path.basename(cur_fold) print '-', cur_fold dbfile = os.path.join(working_dir, 'primary_db_%s.sqlite' % el) decompress_primary_db(dbfile_xz, dbfile)