2014-01-20 11:41:56 +00:00
|
|
|
#!/usr/bin/env python
|
2013-08-21 18:18:01 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
2014-10-22 15:24:04 +00:00
|
|
|
from __future__ import print_function
|
2013-08-21 18:18:01 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
# Manually maintained for brevity; consider making this compiled from
|
|
|
|
# distromatch or other rich data sources.
|
|
|
|
# Debian name on the left, RHEL on the right.
|
|
|
|
package_map = {
|
2013-09-22 12:56:12 +00:00
|
|
|
'augeas-tools': 'augeas',
|
2014-03-10 10:02:24 +00:00
|
|
|
'build-essential': 'make automake gcc gcc-c++ kernel-devel',
|
2013-09-22 12:54:43 +00:00
|
|
|
'default-jre': 'java-1.7.0-openjdk',
|
2014-04-22 10:38:55 +00:00
|
|
|
'extlinux': 'syslinux-extlinux',
|
|
|
|
'gearman-job-server': 'gearmand',
|
|
|
|
'grub-pc': 'grub',
|
2013-11-12 20:27:42 +00:00
|
|
|
'libffi-dev': 'libffi-devel',
|
2014-04-22 10:38:55 +00:00
|
|
|
'libvirt-bin': 'libvirtd',
|
2014-03-10 10:02:24 +00:00
|
|
|
'libxml2-dev': 'libxml2-devel',
|
|
|
|
'libxslt-dev': 'libxslt-devel',
|
|
|
|
'libz-dev': 'zlib-devel',
|
2014-04-22 10:38:55 +00:00
|
|
|
'open-iscsi': 'iscsi-initiator-utils',
|
2014-04-22 10:38:55 +00:00
|
|
|
'openjdk-7-jre-headless': 'java-1.7.0-openjdk-headless',
|
2014-04-22 10:38:55 +00:00
|
|
|
'openssh-client': 'openssh-clients',
|
2014-03-10 10:02:24 +00:00
|
|
|
'python-dev': 'python-devel',
|
2014-01-29 00:46:56 +00:00
|
|
|
'stunnel4': 'stunnel',
|
2014-04-22 10:38:55 +00:00
|
|
|
'tftpd-hpa': 'tftp-server',
|
|
|
|
'tgt': 'scsi-target-utils',
|
|
|
|
'vlan': 'vconfig',
|
2014-02-17 21:37:34 +00:00
|
|
|
}
|
2013-08-21 18:18:01 +00:00
|
|
|
|
2014-10-22 15:24:04 +00:00
|
|
|
print("WARNING: map-packages is deprecated. Please use the pkg-map element.",
|
|
|
|
file=sys.stderr)
|
|
|
|
|
2013-08-21 18:18:01 +00:00
|
|
|
for arg in sys.argv[1:]:
|
|
|
|
print(package_map.get(arg, arg))
|
|
|
|
sys.exit(0)
|