diff options
author | Maxime Gauduin <alucryd@archlinux.org> | 2015-07-17 14:08:25 +0200 |
---|---|---|
committer | Kyle Keen <keenerd@gmail.com> | 2016-01-31 16:05:07 -0500 |
commit | 2546d2edb1c57b8554e70e6aedb84b1636d01542 (patch) | |
tree | a7be074d1f13f12219a4325358159ea8d238701a | |
parent | d18bb2c70397fd5fbf5d234c89c09a2f1150a9c2 (diff) | |
download | namcap-2546d2edb1c57b8554e70e6aedb84b1636d01542.tar.gz namcap-2546d2edb1c57b8554e70e6aedb84b1636d01542.zip |
multilib packages depend on their regular counterparts
Multilib packages are usually stripped from everything that could conflict with
their regular counterparts (bin, include, share) and thus depend on them.
Currently namcap warns that they are not needed. There are of course a few
exceptions, so instead of adding the regular package in smartdepend earlier in
the script, skipping the warning seems to be the way to go.
Signed-off-by: Kyle Keen <keenerd@gmail.com>
-rw-r--r-- | Namcap/depends.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Namcap/depends.py b/Namcap/depends.py index d80dd9f..4409f7d 100644 --- a/Namcap/depends.py +++ b/Namcap/depends.py @@ -134,6 +134,9 @@ def analyze_depends(pkginfo): errors.append(("dependency-detected-not-included %s (%s)", (i, reason))) for i in pkginfo["depends"]: + # multilib packages usually depend on their regular counterparts + if pkginfo["name"].startswith('lib32-') and i == pkginfo["name"].partition('-')[2]: + 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)) |