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'
This commit is contained in:
parent
26c8a94d4d
commit
915da12dd1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue