]> git.pld-linux.org Git - packages/dnf.git/blob - uname-cpuinfo-deps.patch
- treat uname() and cpuinfo() deps the same way as rpmlib() deps, rel 2
[packages/dnf.git] / uname-cpuinfo-deps.patch
1 --- dnf-4.12.0/dnf/cli/commands/check.py~       2022-04-27 11:46:45.000000000 +0200
2 +++ dnf-4.12.0/dnf/cli/commands/check.py        2022-05-13 12:17:21.812109592 +0200
3 @@ -80,6 +80,10 @@
4                  for require in set(pkg.regular_requires) | set(set(pkg.requires_pre) - set(pkg.prereq_ignoreinst)):
5                      if str(require).startswith('rpmlib'):
6                          continue
7 +                    if str(require).startswith('uname('):
8 +                        continue
9 +                    if str(require).startswith('cpuinfo('):
10 +                        continue
11                      if not len(q.filter(provides=[require])):
12                          if str(require).startswith('('):
13                              # rich deps can be only tested by solver
14 --- dnf-4.12.0/dnf/cli/commands/repoquery.py~   2022-04-27 11:46:45.000000000 +0200
15 +++ dnf-4.12.0/dnf/cli/commands/repoquery.py    2022-05-13 12:18:24.088053591 +0200
16 @@ -674,6 +674,8 @@
17              usedpkgs = set() if usedpkgs is None or level == -1 else usedpkgs
18              if pkg.name.startswith("rpmlib") or pkg.name.startswith("solvable"):
19                  return
20 +            if pkg.name.startswith("uname(") or pkg.name.startswith("cpuinfo("):
21 +                return
22              self.grow_tree(level, pkg, opts)
23              if pkg not in usedpkgs:
24                  usedpkgs.add(pkg)
This page took 0.099526 seconds and 3 git commands to generate.