2013-10-11 12:39:16 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
# Copyright 2013 SUSE Linux Products GmbH
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# 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, openSUSE on the right.
|
|
|
|
package_map = {
|
2014-02-28 04:32:47 +00:00
|
|
|
'arping': 'iputils',
|
|
|
|
'augeas-tools': 'augeas',
|
|
|
|
'build-essential': 'make automake gcc gcc-c++ kernel-devel',
|
|
|
|
'default-jre': 'java',
|
|
|
|
'extlinux': 'syslinux',
|
2013-10-11 12:39:16 +00:00
|
|
|
'grub-pc': 'grub2',
|
|
|
|
'libc6-dev': 'glibc-devel',
|
2014-02-21 16:13:00 +00:00
|
|
|
'libffi-dev': 'libffi-devel',
|
2014-02-28 04:32:47 +00:00
|
|
|
'libmysql-java': 'mysql-connector-java',
|
|
|
|
'libmysqlclient-dev': 'libmysqlclient-devel',
|
|
|
|
'libssl-dev': 'openssl-devel',
|
|
|
|
'libvirt-bin': 'libvirt',
|
2013-10-11 12:39:16 +00:00
|
|
|
'libxml2-dev': 'libxml2-devel',
|
|
|
|
'libxslt-dev': 'libxslt-devel',
|
2014-02-28 04:32:47 +00:00
|
|
|
'libz-dev': 'zlib-devel',
|
|
|
|
'linux-image-generic': 'kernel-default',
|
|
|
|
'mysql-client-5.5': 'mariadb-client',
|
|
|
|
'mysql-server-5.5': 'mariadb',
|
|
|
|
'openssh-client': 'openssh',
|
|
|
|
'openvswitch-common': 'openvswitch',
|
|
|
|
'openvswitch-datapath-dkms': 'openvswitch-kmp',
|
|
|
|
'openvswitch-switch': 'openvswitch-switch',
|
|
|
|
'python-dev': 'python-devel',
|
2013-10-11 12:39:16 +00:00
|
|
|
'python-libvirt': 'libvirt-python',
|
|
|
|
'python-memcache': 'python-python-memcached',
|
|
|
|
'python-mysqldb': 'python-mysql',
|
|
|
|
'python-pyopenssl': 'python-pyOpenSSL',
|
2014-02-28 04:32:47 +00:00
|
|
|
'qemu-utils': 'qemu-tools',
|
2014-01-24 16:45:37 +00:00
|
|
|
'tftpd-hpa': 'tftp',
|
2014-01-30 17:52:14 +00:00
|
|
|
# openstack related package remappings
|
|
|
|
'openstack-heat-common': 'openstack-heat',
|
|
|
|
'openstack-neutron-ml2': 'openstack-neutron',
|
2014-02-28 04:32:47 +00:00
|
|
|
'openstack-neutron-openvswitch': 'openstack-neutron-openvswitch-agent',
|
2014-02-17 21:37:34 +00:00
|
|
|
}
|
2013-10-11 12:39:16 +00:00
|
|
|
|
|
|
|
for arg in sys.argv[1:]:
|
|
|
|
print(package_map.get(arg, arg))
|
|
|
|
sys.exit(0)
|