Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/modules/scan/depend/
Date: Fri, 29 Apr 2016 17:25:22
Message-Id: 1461603746.260574004ff6c4dc5187fdf579851d920788fff4.dolsen@gentoo
1 commit: 260574004ff6c4dc5187fdf579851d920788fff4
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 25 17:02:26 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 25 17:02:26 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=26057400
7
8 repoman: remove DependUnknown (part of ProfileDependsChecks now)
9
10 pym/repoman/modules/scan/depend/unknown.py | 41 ------------------------------
11 1 file changed, 41 deletions(-)
12
13 diff --git a/pym/repoman/modules/scan/depend/unknown.py b/pym/repoman/modules/scan/depend/unknown.py
14 deleted file mode 100644
15 index 6667d4f..0000000
16 --- a/pym/repoman/modules/scan/depend/unknown.py
17 +++ /dev/null
18 @@ -1,41 +0,0 @@
19 -# -*- coding:utf-8 -*-
20 -
21 -from repoman.modules.scan.scanbase import ScanBase
22 -
23 -
24 -class DependUnknown(ScanBase):
25 - '''Perform checks to determine unknown dependencies'''
26 -
27 - def __init__(self, **kwargs):
28 - '''Class init
29 -
30 - @param qatracker: QATracker instance
31 - '''
32 - self.qatracker = kwargs.get('qatracker')
33 -
34 - def check(self, **kwargs):
35 - '''Perform unknown dependancy checks
36 -
37 - @param ebuild: Future.result == Ebuild which we check (object).
38 - @param baddepsyntax: Future.result == boolean
39 - @param unknown_pkgs: set of tuples (type, atom.unevaluated_atom)
40 - @returns: dictionary
41 - '''
42 - ebuild = kwargs.get('ebuild').get()
43 - baddepsyntax = kwargs.get('baddepsyntax').get()
44 - unknown_pkgs = kwargs.get('unknown_pkgs').get()
45 -
46 - if not baddepsyntax and unknown_pkgs:
47 - type_map = {}
48 - for mytype, atom in unknown_pkgs:
49 - type_map.setdefault(mytype, set()).add(atom)
50 - for mytype, atoms in type_map.items():
51 - self.qatracker.add_error(
52 - "dependency.unknown", "%s: %s: %s"
53 - % (ebuild.relative_path, mytype, ", ".join(sorted(atoms))))
54 - return False
55 -
56 - @property
57 - def runInEbuilds(self):
58 - '''Ebuild level scans'''
59 - return (True, [self.check])