diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2015-02-02 10:03:49 +0100 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2015-02-02 10:03:49 +0100 |
commit | 0f20daaf60e517adaf6238ddf84fd9a6b8322109 (patch) | |
tree | a23642f901a51a427050004676138c69522c3cd3 | |
parent | dabbbbb3cf0354b8b4907c09788eeee50cad46df (diff) | |
download | ansible-0f20daaf60e517adaf6238ddf84fd9a6b8322109.tar.gz ansible-0f20daaf60e517adaf6238ddf84fd9a6b8322109.tar.xz ansible-0f20daaf60e517adaf6238ddf84fd9a6b8322109.zip |
Fix retrieving the RHEL channel for the package
-rw-r--r-- | roles/repo2json/files/rhel_to_json.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/repo2json/files/rhel_to_json.py b/roles/repo2json/files/rhel_to_json.py index e3eaeb840..63ba2520e 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) |