[elbe-devel] [PATCH] elbepack: remove unused function cmd_exists()
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Jul 22 09:49:47 CEST 2024
It is not used, so delete it.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh 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,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list