Blob Blame Raw
From 46db163df1f01f57224b91950427e501c0f4dba1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
Date: Mon, 20 May 2019 17:09:03 +0200
Subject: [PATCH] Hotfix for libdnf in Fedora >= 29

---
 rpmdeplint/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpmdeplint/__init__.py b/rpmdeplint/__init__.py
index 3de8e05..fad7f9d 100644
--- a/rpmdeplint/__init__.py
+++ b/rpmdeplint/__init__.py
@@ -125,7 +125,7 @@
         self.repos_by_name = {}  #: mapping of (reponame, rpmdeplint.Repo)
         for repo in repos:
             repo.download_repodata()
-            self._sack.load_yum_repo(repo=repo.as_hawkey_repo(), load_filelists=True)
+            self._sack.load_repo(repo=repo.as_hawkey_repo(), load_filelists=True)
             self.repos_by_name[repo.name] = repo
 
     def __enter__(self):
@@ -184,7 +184,7 @@
             results['upgrades'] = g.list_upgrades()
             results['erasures'] = g.list_erasures()
         else:
-            results['problems'] = g.problems
+            results['problems'] = [': '.join(problem) for problem in g.problem_rules()]
 
         return install_succeeded, results

--
2.21.0