Convert -dev to -devel in fedora/map-packages

If there is not a special case in package_map then
convert all *-dev packages into *-devel

Change-Id: I411935c1f3221016b56263ac9502221cd75d130d
This commit is contained in:
Angus Salkeld 2014-01-17 18:10:13 +10:00
parent 016fc76d84
commit a021b110ad

View File

@ -25,13 +25,9 @@ package_map = {
'linux-image-generic': 'kernel',
'open-iscsi': 'iscsi-initiator-utils',
'vlan': 'vconfig',
'python-dev': 'python-devel',
'libc6-dev': 'glibc-devel',
'libxml2-dev': 'libxml2-devel',
'libxslt-dev': 'libxslt-devel',
'python-libvirt': 'libvirt-python',
'libvirt-bin': 'libvirt',
'libvirt-dev': 'libvirt-devel',
'python-xattr': 'pyxattr',
'python-memcache': 'python-memcached',
'tgt': 'scsi-target-utils',
@ -58,10 +54,13 @@ package_map = {
'tftpd-hpa' : 'tftp-server',
'apache2': 'httpd',
'libapache2-mod-wsgi': 'mod_wsgi',
'libffi-dev': 'libffi-devel',
'gearman-job-server': 'gearmand',
}
for arg in sys.argv[1:]:
print(package_map.get(arg, arg))
if arg not in package_map and arg.endswith('-dev'):
# convert -dev into devel
print('%s%s' % (arg, 'el'))
else:
print(package_map.get(arg, arg))
sys.exit(0)