[elbe-devel] [PATCH] elbepack: remove unused function cmd_exists()
Eduard Krein
eduard.krein at linutronix.de
Wed Jul 24 09:36:06 CEST 2024
Am 22.07.2024 um 09:49 schrieb Thomas Weißschuh:
> It is not used, so delete it.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
Reviewed-by: Eduard Krein <eduard.krein at linutronix.de>
> ---
> elbepack/initvmaction.py | 5 -----
> elbepack/pbuilderaction.py | 5 -----
> 2 files changed, 10 deletions(-)
>
> diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
> index a2ad7e112e8c..61d78d36dbed 100644
> --- a/elbepack/initvmaction.py
> +++ b/elbepack/initvmaction.py
> @@ -27,11 +27,6 @@ def is_soap_local():
> return cfg['soaphost'] in ('localhost', '127.0.0.1')
>
>
> -def cmd_exists(x):
> - return any(os.access(os.path.join(path, x), os.X_OK)
> - for path in os.environ['PATH'].split(os.pathsep))
> -
> -
> prog = os.path.basename(sys.argv[0])
>
> # Create download directory with timestamp,
> diff --git a/elbepack/pbuilderaction.py b/elbepack/pbuilderaction.py
> index 8df9243143db..224324a45be7 100644
> --- a/elbepack/pbuilderaction.py
> +++ b/elbepack/pbuilderaction.py
> @@ -2,7 +2,6 @@
> # SPDX-License-Identifier: GPL-3.0-or-later
> # SPDX-FileCopyrightText: 2015-2017 Linutronix GmbH
>
> -import os
> import subprocess
> import sys
>
> @@ -11,10 +10,6 @@ from elbepack.filesystem import TmpdirFilesystem
> from elbepack.xmlpreprocess import preprocess_file
>
>
> -def cmd_exists(x):
> - return any(os.access(os.path.join(path, x), os.X_OK)
> - for path in os.environ['PATH'].split(os.pathsep))
> -
> # Create download directory with timestamp,
> # if necessary
>
>
> ---
> base-commit: 989fac08530cb101f31027d37210118638a4cfcd
> change-id: 20240722-cmd_exists-c56897d338e3
>
> Best regards,
--
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.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, Tiffany Silva, Sean Fennelly, Jeffrey Schneiderman
More information about the elbe-devel
mailing list