From fcd4c231c4f3ab32f13ed678fc4d6af6fec34fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 8 Feb 2017 13:40:59 +0100 Subject: [PATCH] Stop importing hawkey directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's API is considered deprecated. Signed-off-by: Lubomír Sedlář --- pungi/gather_dnf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index 46dcf425..fb11b636 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -19,7 +19,6 @@ from enum import Enum from itertools import count import logging -import hawkey from kobo.rpmlib import parse_nvra import pungi.common @@ -355,7 +354,7 @@ class Gather(GatherBase): for pattern in includes: with Profiler("Gather.add_initial_packages():include"): if pattern == "system-release" and self.opts.greedy_method == "all": - pkgs = self.q_binary_packages.filter(provides=hawkey.Reldep(self.dnf.sack, "system-release")).apply() + pkgs = self.q_binary_packages.filter(provides="system-release").apply() else: if pattern.endswith(".+"): pkgs = self.q_multilib_binary_packages.filter(name__glob=pattern[:-2]).apply()