[elbe-devel] [PATCH 20/25] pylint - repomanager: remove unused parameter

Manuel Traut manut at linutronix.de
Wed Aug 29 21:02:50 CEST 2018


component isn't used by _remove_[deb|src]

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/repomanager.py | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index 54dae205..13a0e393 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -227,15 +227,15 @@ class RepoBase(object):
                     component + ' -P normal -S misc include ' + codename +
                     ' ' + path)
 
-    def _removedeb(self, pkgname, codename, component):
+    def _removedeb(self, pkgname, codename):
         self.log.do(
             "reprepro --basedir %s remove %s %s" %
             (self.fs.path, codename, pkgname))
 
     def removedeb(self, pkgname, component="main"):
-        self._removedeb(pkgname, self.repo_attr.codename, component)
+        self._removedeb(pkgname, self.repo_attr.codename)
 
-    def _removesrc(self, srcname, codename, component):
+    def _removesrc(self, srcname, codename):
         self.log.do(
             "reprepro --basedir %s removesrc %s %s" %
             (self.fs.path, codename, srcname))
@@ -243,18 +243,15 @@ class RepoBase(object):
     def removesrc(self, path, component="main"):
         for p in Deb822.iter_paragraphs(file(path)):
             if 'Source' in p:
-                self._removesrc(
-                    p['Source'],
-                    self.repo_attr.codename,
-                    component)
+                self._removesrc(p['Source'], self.repo_attr.codename)
 
     def _remove(self, path, codename, component):
         os.environ['GNUPGHOME'] = "/var/cache/elbe/gnupg"
         for p in Deb822.iter_paragraphs(file(path)):
             if 'Source' in p:
-                self._removesrc(p['Source'], codename, component)
+                self._removesrc(p['Source'], codename)
             elif 'Package' in p:
-                self._removedeb(p['Package'], codename, component)
+                self._removedeb(p['Package'], codename)
 
     def _includedsc(self, path, codename, component):
         if self.maxsize:
-- 
2.18.0




More information about the elbe-devel mailing list