Skip to content
Snippets Groups Projects

pmb: Migrate pkgrel_bump to Command + pmb.commands: Migrate if ... else chain to match

Merged Imported Administrator requested to merge newbyte/pkgrel-bump-modernise into master
4 files
+ 41
26
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 3
1
@@ -15,6 +15,7 @@ from .index import Index
from .repo_bootstrap import RepoBootstrap
from .shutdown import Shutdown
from .test import Test
from .pkgrel_bump import PkgrelBump
from .pull import Pull
from .kconfig_check import KConfigCheck
from .kconfig_edit import KConfigEdit
@@ -32,7 +33,6 @@ unmigrated_commands = [
"flasher",
"initfs",
"qemu",
"pkgrel_bump",
"aportupgrade",
"newapkbuild",
"lint",
@@ -74,6 +74,8 @@ def run_command(args: PmbArgs):
command = Shutdown()
elif args.action == "test":
command = Test(args.action_test)
elif args.action == "pkgrel_bump":
command = PkgrelBump(args.packages, args.dry, args.auto)
elif args.action == "pull":
command = Pull()
elif args.action == "kconfig" and args.action_kconfig == "check":
Loading