diff --git a/pmb/helpers/args.py b/pmb/helpers/args.py index 7a5ee342..67be2cdf 100644 --- a/pmb/helpers/args.py +++ b/pmb/helpers/args.py @@ -131,32 +131,9 @@ def init(args: PmbArgs) -> PmbArgs: if not key.startswith("_") and not key == "from_argparse": setattr(__args, key, value) - # print(json.dumps(__args.__dict__)) - - # sys.exit(0) - return __args -# def update_work(args: PmbArgs, work): -# """Update the work path in args.work and wherever $WORK was used.""" -# # Start with the unmodified args from argparse -# args_new = copy.deepcopy(args.from_argparse) - -# # Keep from the modified args: -# # * the unmodified args from argparse (to check if --aports was specified) -# args_new.from_argparse = args.from_argparse - -# # Generate modified args again, replacing $WORK with the new work folder -# # When args.log is different, this also opens the log in the new location -# args_new.work = work -# args_new = pmb.helpers.args.init(args_new) - -# # Overwrite old attributes of args with the new attributes -# for key in vars(args_new): -# setattr(args, key, getattr(args_new, key)) - - def please_i_really_need_args() -> PmbArgs: import traceback diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py index 354857ba..21439a3e 100644 --- a/pmb/parse/arguments.py +++ b/pmb/parse/arguments.py @@ -1277,12 +1277,8 @@ def get_parser(): def arguments(): - # Parse and extend arguments (also backup unmodified result from argparse) args: PmbArgs = get_parser().parse_args() - # setattr(args, "from_argparse", copy.deepcopy(args)) - # setattr(args.from_argparse, "from_argparse", args.from_argparse) - if getattr(args, "fork_alpine_retain_branch", False): # fork_alpine_retain_branch largely matches the behaviour of fork_alpine, so # just set fork_alpine here to reduce repetition.