[elbe-devel] [PATCH 24/40] pylint: mark_delete - remove unused param version
Torben Hohn
torben.hohn at linutronix.de
Thu Sep 20 13:02:52 CEST 2018
On Fri, Sep 14, 2018 at 01:56:36PM +0200, Manuel Traut wrote:
> Signed-off-by: Manuel Traut <manut at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn 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
>
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20180920/e8f3ad7f/attachment-0001.sig>
More information about the elbe-devel
mailing list