]> git.pld-linux.org Git - packages/rpmlint.git/blob - rpmlint-groups.patch
c1137e349fc12ceec95fc06dabc4b529ef0a5fd2
[packages/rpmlint.git] / rpmlint-groups.patch
1 Use GROUPS file from rpmlint (this project) package rather than rpm
2
3 --- rpmlint-rpmlint-1.9/Pkg.py~ 2016-06-29 20:07:39.000000000 +0300
4 +++ rpmlint-rpmlint-1.9/Pkg.py  2016-08-06 12:10:45.102344608 +0300
5 @@ -214,16 +214,16 @@
6  def get_default_valid_rpmgroups(filename=None):
7      """
8      Get default rpm groups from filename, or try to look them up from
9 -    the rpm package (if installed) if no filename is given.
10 +    the rpmlint package (if installed) if no filename is given.
11      """
12      groups = []
13      if not filename:
14          try:
15 -            with InstalledPkg("rpm") as p:
16 +            with InstalledPkg("rpmlint") as p:
17                  groupsfiles = [x for x in p.files() if x.endswith('/GROUPS')]
18                  if groupsfiles:
19                      filename = groupsfiles[0]
20 -        except:  # the rpm package might not be installed
21 +        except:  # the rpmlint package might not be installed
22              pass
23      if filename and os.path.exists(filename):
24          with open(filename) as fobj:
This page took 0.083689 seconds and 2 git commands to generate.