dnf/enforce-api-add-compatibility-methods-for-renamed-co.patch
2016-05-24 17:27:32 +02:00

52 lines
1.8 KiB
Diff

From 176a81e357b8e169008c831963c3b487b3bac40a Mon Sep 17 00:00:00 2001
From: Michal Luscon <mluscon@redhat.com>
Date: Tue, 24 May 2016 16:05:54 +0200
Subject: [PATCH 1/3] enforce-api: add compatibility methods for renamed
counterparts (RhBug:1338564)
---
dnf/base.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dnf/base.py b/dnf/base.py
index b2648f6..7943c8a 100644
--- a/dnf/base.py
+++ b/dnf/base.py
@@ -925,6 +925,10 @@ class Base(object):
self._add_tempfiles([path])
return self.sack.add_cmdline_package(path)
+ def _sigCheckPkg(self, po):
+ # :compat method
+ self._sig_check_pkg(po)
+
def _sig_check_pkg(self, po):
"""Verify the GPG signature of the given package object.
@@ -997,6 +1001,11 @@ class Base(object):
logger.log(dnf.logging.DDEBUG,
_('%s removed'), fn)
+ def _doPackageLists(self, pkgnarrow='all', patterns=None, showdups=None,
+ ignore_case=False, reponame=None):
+ # :compat method
+ self._do_package_lists(pkgnarrow, patterns, showdups, ignore_case, reponame)
+
def _do_package_lists(self, pkgnarrow='all', patterns=None, showdups=None,
ignore_case=False, reponame=None):
"""Return a :class:`misc.GenericHolder` containing
@@ -1802,6 +1811,10 @@ class Base(object):
else:
assert False
+ def _getKeyForPackage(self, po, askcb=None, fullaskcb=None):
+ # :compat method
+ self._get_key_for_package(po, askcb, fullaskcb)
+
def _get_key_for_package(self, po, askcb=None, fullaskcb=None):
"""Retrieve a key for a package. If needed, use the given
callback to prompt whether the key should be imported.
--
2.7.4