forked from Mirror/pmbootstrap
args: drop config_channels (MR 2252)
This doesn't seem to be ever used, drop it. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
fa804c9453
commit
52338c5e76
3 changed files with 12 additions and 19 deletions
|
@ -52,7 +52,6 @@ class PmbArgs(Namespace):
|
|||
cmdline: str
|
||||
command: str
|
||||
config: Path
|
||||
config_channels: str
|
||||
details: bool
|
||||
details_to_stdout: bool
|
||||
device: str
|
||||
|
|
|
@ -124,9 +124,6 @@ def parse_channels_cfg(args):
|
|||
|
||||
# Read with configparser
|
||||
cfg = configparser.ConfigParser()
|
||||
if args.config_channels:
|
||||
cfg.read([args.config_channels])
|
||||
else:
|
||||
remote = get_upstream_remote(args, "pmaports")
|
||||
command = ["git", "show", f"{remote}/master:channels.cfg"]
|
||||
stdout = pmb.helpers.run.user_output(command, args.aports,
|
||||
|
|
|
@ -646,9 +646,6 @@ def get_parser():
|
|||
default=pmb.config.defaults["config"],
|
||||
help="path to pmbootstrap.cfg file (default in"
|
||||
" ~/.config/)")
|
||||
parser.add_argument("--config-channels",
|
||||
help="path to channels.cfg (which is by default"
|
||||
" read from pmaports.git, origin/master branch)")
|
||||
parser.add_argument("-mp", "--mirror-pmOS", dest="mirrors_postmarketos",
|
||||
help="postmarketOS mirror, disable with: -mp='',"
|
||||
" specify multiple with: -mp='one' -mp='two',"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue