2013-08-21 18:18:01 +00:00
|
|
|
#!/bin/env python
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
'grub-pc': 'grub',
|
|
|
|
'extlinux': 'syslinux-extlinux',
|
|
|
|
'open-iscsi': 'iscsi-initiator-utils',
|
|
|
|
'vlan': 'vconfig',
|
2013-09-22 12:56:12 +00:00
|
|
|
'augeas-tools': 'augeas',
|
2013-09-22 13:16:59 +00:00
|
|
|
'openssh-client': 'openssh-clients',
|
2013-09-22 12:54:43 +00:00
|
|
|
'default-jre': 'java-1.7.0-openjdk',
|
2013-09-26 17:38:44 +00:00
|
|
|
'atftpd': 'tftp-server',
|
2013-10-24 13:49:40 +00:00
|
|
|
'tftpd-hpa' : 'tftp-server',
|
2013-08-21 18:18:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for arg in sys.argv[1:]:
|
|
|
|
print(package_map.get(arg, arg))
|
|
|
|
sys.exit(0)
|