Skip to content

Commit 59992a6

Browse files
m-blahaj-mracek
authored andcommitted
Move Selector class from dnf to libdnf/hawkey
1 parent 37f9568 commit 59992a6

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

dnf/selector.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,4 @@
2121
from __future__ import absolute_import
2222
from __future__ import unicode_literals
2323

24-
import hawkey
25-
import dnf.util
26-
27-
class Selector(hawkey.Selector):
28-
# :api
29-
def _set_autoglob(self, **kwargs):
30-
nargs = {}
31-
for (key, value) in kwargs.items():
32-
if dnf.util.is_glob_pattern(value):
33-
nargs[key + "__glob"] = value
34-
else:
35-
nargs[key] = value
36-
return self.set(**nargs)
24+
from hawkey import Selector

0 commit comments

Comments
 (0)