summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen <keenerd@gmail.com>2016-05-05 14:22:55 -0400
committerKyle Keen <keenerd@gmail.com>2016-05-05 14:22:55 -0400
commit96cdbb3628139c2ef14ec022988c74df09c1bb88 (patch)
tree2fe2517c6eba6119010513b37f7f0ef587a4ccf0
parent01c89e047ca020d26c53414baa6a15729ceb7b20 (diff)
downloadnamcap-96cdbb3628139c2ef14ec022988c74df09c1bb88.tar.gz
namcap-96cdbb3628139c2ef14ec022988c74df09c1bb88.zip
Handle another 'provides' edge case.
Signed-off-by: Kyle Keen <keenerd@gmail.com>
-rw-r--r--Namcap/depends.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Namcap/depends.py b/Namcap/depends.py
index b17aa26..3c115bf 100644
--- a/Namcap/depends.py
+++ b/Namcap/depends.py
@@ -147,6 +147,9 @@ def analyze_depends(pkginfo):
# multilib packages usually depend on their regular counterparts
if pkginfo["name"].startswith('lib32-') and i == pkginfo["name"].partition('-')[2]:
continue
+ # the package provides an important dependency
+ if i in smartprovides and (smartprovides[i] & smartdepend):
+ continue
# a needed dependency is superfluous it is implicitly satisfied
if i in implicitdepend and (i in smartdepend or i in indirectdependlist):
warnings.append(("dependency-already-satisfied %s", i))