[elbe-devel] [PATCH 08/13] pylint - repomanager: remove unused variables

Manuel Traut manut at linutronix.de
Thu Aug 30 17:05:19 CEST 2018


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

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index d7540bf4..a89a45c3 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -213,7 +213,7 @@ class RepoBase(object):
                 # different md5 already.
                 #
                 # Try remove, and add again.
-                self.removedeb(pkgname, component)
+                self.removedeb(pkgname)
                 self._includedeb(path, self.repo_attr.codename, component)
             else:
                 raise ce
@@ -233,7 +233,7 @@ class RepoBase(object):
             "reprepro --basedir %s remove %s %s" %
             (self.fs.path, codename, pkgname))
 
-    def removedeb(self, pkgname, component="main"):
+    def removedeb(self, pkgname):
         self._removedeb(pkgname, self.repo_attr.codename)
 
     def _removesrc(self, srcname, codename):
@@ -241,12 +241,12 @@ class RepoBase(object):
             "reprepro --basedir %s removesrc %s %s" %
             (self.fs.path, codename, srcname))
 
-    def removesrc(self, path, component="main"):
+    def removesrc(self, path):
         for p in Deb822.iter_paragraphs(file(path)):
             if 'Source' in p:
                 self._removesrc(p['Source'], self.repo_attr.codename)
 
-    def _remove(self, path, codename, component):
+    def _remove(self, path, codename):
         os.environ['GNUPGHOME'] = "/var/cache/elbe/gnupg"
         for p in Deb822.iter_paragraphs(file(path)):
             if 'Source' in p:
@@ -283,7 +283,7 @@ class RepoBase(object):
                 # different md5 already.
                 #
                 # Try remove, and add again.
-                self.removesrc(path, component)
+                self.removesrc(path)
                 self._includedsc(path, self.repo_attr.codename, component)
             else:
                 raise ce
@@ -291,8 +291,8 @@ class RepoBase(object):
     def include(self, path, component="main"):
         self._include(path, self.repo_attr.codename, component)
 
-    def remove(self, path, component="main"):
-        self._remove(path, self.repo_attr.codename, component)
+    def remove(self, path):
+        self._remove(path, self.repo_attr.codename)
 
     def include_init_dsc(self, path, component="main"):
         self._includedsc(path, self.init_attr.codename, component)
-- 
2.18.0




More information about the elbe-devel mailing list