[elbe-devel] [PATCH 24/40] pylint: mark_delete - remove unused param version

Manuel Traut manut at linutronix.de
Fri Sep 14 13:56:36 CEST 2018


Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/pkgarchive.py  | 2 +-
 elbepack/rpcaptcache.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/pkgarchive.py b/elbepack/pkgarchive.py
index 146277a9..14e6bd46 100644
--- a/elbepack/pkgarchive.py
+++ b/elbepack/pkgarchive.py
@@ -162,7 +162,7 @@ def checkout_binpkg_archive(ep, repodir):
 
                 if not marked:
                     ep.log.printo("Delete " + p.name + "-" + version)
-                    c.mark_delete(p.name, None)
+                    c.mark_delete(p.name)
 
             # Now commit the changes
             ep.log.printo("Commiting package changes")
diff --git a/elbepack/rpcaptcache.py b/elbepack/rpcaptcache.py
index 908bd8fc..c5487aaf 100644
--- a/elbepack/rpcaptcache.py
+++ b/elbepack/rpcaptcache.py
@@ -150,7 +150,7 @@ class RPCAPTCache(InChRootObject):
             p.candidate = p.versions[version]
         p.mark_upgrade()
 
-    def mark_delete(self, pkgname, version):
+    def mark_delete(self, pkgname):
         p = self.cache[pkgname]
         p.mark_delete(purge=True)
 
-- 
2.19.0.rc2




More information about the elbe-devel mailing list