[elbe-devel] [PATCH 22/25] pylint - mark_delete: remove unused parameter version

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


Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/pkgarchive.py     | 2 +-
 elbepack/projectmanager.py | 4 ++--
 elbepack/rpcaptcache.py    | 2 +-
 3 files changed, 4 insertions(+), 4 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/projectmanager.py b/elbepack/projectmanager.py
index 140d1a65..aab2bd5c 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -408,7 +408,7 @@ class ProjectManager(object):
             c = self._get_current_project_apt_cache(userid)
             c.mark_upgrade(pkgname, version)
 
-    def apt_mark_delete(self, userid, pkgname, version):
+    def apt_mark_delete(self, userid, pkgname):
         with self.lock:
             c = self._get_current_project_apt_cache(userid)
 
@@ -417,7 +417,7 @@ class ProjectManager(object):
 
             if pkgname in pkgs:
                 pkgs.remove(pkgname)
-                c.mark_delete(pkgname, version)
+                c.mark_delete(pkgname)
 
             ep.xml.set_target_packages(pkgs)
 
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.18.0




More information about the elbe-devel mailing list