Merge "Convert -dev to -devel in fedora/map-packages"
This commit is contained in:
commit
c21c82bacf
@ -25,13 +25,9 @@ package_map = {
|
|||||||
'linux-image-generic': 'kernel',
|
'linux-image-generic': 'kernel',
|
||||||
'open-iscsi': 'iscsi-initiator-utils',
|
'open-iscsi': 'iscsi-initiator-utils',
|
||||||
'vlan': 'vconfig',
|
'vlan': 'vconfig',
|
||||||
'python-dev': 'python-devel',
|
|
||||||
'libc6-dev': 'glibc-devel',
|
'libc6-dev': 'glibc-devel',
|
||||||
'libxml2-dev': 'libxml2-devel',
|
|
||||||
'libxslt-dev': 'libxslt-devel',
|
|
||||||
'python-libvirt': 'libvirt-python',
|
'python-libvirt': 'libvirt-python',
|
||||||
'libvirt-bin': 'libvirt',
|
'libvirt-bin': 'libvirt',
|
||||||
'libvirt-dev': 'libvirt-devel',
|
|
||||||
'python-xattr': 'pyxattr',
|
'python-xattr': 'pyxattr',
|
||||||
'python-memcache': 'python-memcached',
|
'python-memcache': 'python-memcached',
|
||||||
'tgt': 'scsi-target-utils',
|
'tgt': 'scsi-target-utils',
|
||||||
@ -58,10 +54,13 @@ package_map = {
|
|||||||
'tftpd-hpa' : 'tftp-server',
|
'tftpd-hpa' : 'tftp-server',
|
||||||
'apache2': 'httpd',
|
'apache2': 'httpd',
|
||||||
'libapache2-mod-wsgi': 'mod_wsgi',
|
'libapache2-mod-wsgi': 'mod_wsgi',
|
||||||
'libffi-dev': 'libffi-devel',
|
|
||||||
'gearman-job-server': 'gearmand',
|
'gearman-job-server': 'gearmand',
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
|
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))
|
print(package_map.get(arg, arg))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user