pmbootstrap/pmb/config
Petr Vorel ba07c4cf14
pmbootstrap init: Fix regexp for int (MR 2086)
This improves handling input in pmbootstrap init.

Various config options in "Additional options" are int, thus whole input
must be checked:

This fixes obvious error:
Jobs [9]: 5e

and less obvious errors:
Extra space size: 600.5
Extra space size: 600m
...
$ pmbootstrap install
[17:28:23] *** (3/4) PREPARE INSTALL BLOCKDEVICE ***
[17:28:23] ERROR: invalid literal for int() with base 10: '600.5'

NOTE: I suppose moving ^ $ to ReadlineTabCompleter.ask() would break
some of already defined regexes.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
2021-08-01 16:12:04 +02:00
..
__init__.py kconfig check: require CONFIG_SWAP for zram (MR 2085) 2021-07-17 18:11:50 -07:00
init.py pmbootstrap init: Fix regexp for int (MR 2086) 2021-08-01 16:12:04 +02:00
load.py enforce E501 in pmb/config (MR 2058) 2021-06-06 19:21:31 +02:00
merge_with_args.py enforce E501 in pmb/config (MR 2058) 2021-06-06 19:21:31 +02:00
pmaports.py Replace pmaports channels stable, stable-next (MR 2032) 2021-03-18 18:58:13 +01:00
save.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
workdir.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00