Stop importing hawkey directly
It's API is considered deprecated. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
27b24a489f
commit
fcd4c231c4
@ -19,7 +19,6 @@ from enum import Enum
|
|||||||
from itertools import count
|
from itertools import count
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import hawkey
|
|
||||||
from kobo.rpmlib import parse_nvra
|
from kobo.rpmlib import parse_nvra
|
||||||
|
|
||||||
import pungi.common
|
import pungi.common
|
||||||
@ -355,7 +354,7 @@ class Gather(GatherBase):
|
|||||||
for pattern in includes:
|
for pattern in includes:
|
||||||
with Profiler("Gather.add_initial_packages():include"):
|
with Profiler("Gather.add_initial_packages():include"):
|
||||||
if pattern == "system-release" and self.opts.greedy_method == "all":
|
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:
|
else:
|
||||||
if pattern.endswith(".+"):
|
if pattern.endswith(".+"):
|
||||||
pkgs = self.q_multilib_binary_packages.filter(name__glob=pattern[:-2]).apply()
|
pkgs = self.q_multilib_binary_packages.filter(name__glob=pattern[:-2]).apply()
|
||||||
|
Loading…
Reference in New Issue
Block a user