File 0001-Add-additional-default-distroverpkg-and-installonlyp.patch of Package dnf

From b103053b71bfabadfee0129558e788e59d4f7665 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13@gmail.com>
Date: Wed, 3 Jan 2018 19:10:34 -0500
Subject: [PATCH] Add additional default distroverpkg and installonlypkg names

The additional distroverpkg and installonlypkg names allow for
DNF to properly recognize variations from other distribution families,
notably the SUSE Linux distribution family.
---
 dnf/const.py.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dnf/const.py.in b/dnf/const.py.in
index 4f47ea70..44a204a4 100644
--- a/dnf/const.py.in
+++ b/dnf/const.py.in
@@ -23,12 +23,15 @@ import distutils.sysconfig
 
 CONF_FILENAME='/etc/dnf/dnf.conf' # :api
 CONF_AUTOMATIC_FILENAME='/etc/dnf/automatic.conf'
-DISTROVERPKG=('system-release(releasever)', 'redhat-release')
+DISTROVERPKG=('system-release(releasever)', 'system-release',
+              'distribution-release(releasever)', 'distribution-release',
+              'redhat-release', 'suse-release')
 GROUP_PACKAGE_TYPES = ('mandatory', 'default', 'conditional') # :api
 INSTALLONLYPKGS=['kernel', 'kernel-PAE',
                  'installonlypkg(kernel)',
                  'installonlypkg(kernel-module)',
-                 'installonlypkg(vm)']
+                 'installonlypkg(vm)',
+                 'multiversion(kernel)']
 LOG='dnf.log'
 LOG_HAWKEY='hawkey.log'
 LOG_LIBREPO='dnf.librepo.log'
-- 
2.15.1

openSUSE Build Service is sponsored by