key = 'autobuild'
if adjust_repos:
- distro.packager.install_priorities_plugin()
- # haven't been able to determine necessity of check_obsoletes with DNF
- distro.conn.remote_module.enable_yum_priority_obsoletes()
- logger.warning('check_obsoletes has been enabled for Yum priorities plugin')
+ if distro.packager.name == 'yum':
+ distro.packager.install('yum-plugin-priorities')
+ # haven't been able to determine necessity of check_obsoletes with DNF
+ distro.conn.remote_module.enable_yum_priority_obsoletes()
+ logger.warning('check_obsoletes has been enabled for Yum priorities plugin')
if version_kind != 'dev':
- remoto.process.run(
- distro.conn,
- [
- 'rpm',
- '--import',
- gpg.url(key)
- ]
- )
+ distro.packager.add_repo_gpg_key(gpg.url(key))
if version_kind == 'stable':
url = 'http://ceph.com/rpm-{version}/fc{release}/'.format(