From 915da12dd15f11fc928b4c2960de1e59fea1ad79 Mon Sep 17 00:00:00 2001 From: Pablo Castellano Date: Sun, 30 Jul 2017 20:41:49 +0200 Subject: [PATCH] Allow 'pmbootstrap menuconfig' without specifying "linux-" (#295) We can allow both ways: * pmbootstrap menuconfig linux-motorola-titan * pmbootstrap menuconfig motorola-titan The former will show a tip about the second This also prevents users from running menuconfig on aports like 'device-motorola-titan' or 'mkbootimg' --- pmb/build/menuconfig.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pmb/build/menuconfig.py b/pmb/build/menuconfig.py index 3a331c4a..42fede5e 100644 --- a/pmb/build/menuconfig.py +++ b/pmb/build/menuconfig.py @@ -29,6 +29,13 @@ import pmb.parse def menuconfig(args, pkgname, arch): + if pkgname.startswith("linux-"): + pkgname_ = pkgname.split("linux-")[1] + logging.info("PROTIP: You can simply do 'pmbootstrap menuconfig " + + pkgname_ + "'") + else: + pkgname = "linux-" + pkgname + # Read apkbuild aport = pmb.build.find_aport(args, pkgname, False) if not aport: