[elbe-devel] [PATCH 7/9] elbepack: commands: preprocess: drop custom file existence check
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Fri Mar 21 14:31:31 CET 2025
The exception raised from xmlprocess() is already good enough.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/commands/preprocess.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/elbepack/commands/preprocess.py b/elbepack/commands/preprocess.py
index 1427d377ed021b652f4ad647872d00fa164b2a1e..62f79c2bfe0efb25a0ef5db71d475cddef21f3dc 100644
--- a/elbepack/commands/preprocess.py
+++ b/elbepack/commands/preprocess.py
@@ -3,7 +3,6 @@
# SPDX-FileCopyrightText: 2017 Linutronix GmbH
import argparse
-import os
import sys
from elbepack.config import add_argument_soapport, add_argument_sshport
@@ -35,10 +34,6 @@ def run_command(argv):
_add_arguments(aparser)
args = aparser.parse_args(argv)
- if not os.path.isfile(args.xmlfile):
- print(f"{args[0]} doesn't exist", file=sys.stderr)
- sys.exit(113)
-
try:
xmlpreprocess(args.xmlfile, args.output,
variants=args.variants, proxy=args.proxy, gzip=args.gzip,
--
2.48.1
More information about the elbe-devel
mailing list