[elbe-devel] [PATCH 15/16] virtapt: ignore pylint no-member

Torben Hohn torben.hohn at linutronix.de
Wed Jul 28 17:40:51 CEST 2021


pylint can not look into the hashes class.

Make it ignore the unknown find() call.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/virtapt.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index bdf53ed63..24d989cf9 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -60,6 +60,7 @@ def lookup_uri(v, d, target_pkg):
         return target_pkg, uri, ""
 
     try:
+        # pylint: disable=no-member
         hashval = str(r.hashes.find('SHA256')).split(':')[1]
     except AttributeError:
         # TODO: this fallback Code can be removed on stretch
@@ -224,6 +225,7 @@ class VirtApt:
 
         x = self.source.find_index(c.file_list[0][0])
         uri = x.archive_uri(r.filename)
+        # pylint: disable=no-member
         hashval = str(r.hashes.find('SHA256'))
 
         acq = apt_pkg.AcquireFile(self.acquire,
-- 
2.20.1



More information about the elbe-devel mailing list