diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /sys-process/bpytop/files/bpytop-1.0.63-tests.patch | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'sys-process/bpytop/files/bpytop-1.0.63-tests.patch')
-rw-r--r-- | sys-process/bpytop/files/bpytop-1.0.63-tests.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys-process/bpytop/files/bpytop-1.0.63-tests.patch b/sys-process/bpytop/files/bpytop-1.0.63-tests.patch new file mode 100644 index 000000000000..3085c3e19ef5 --- /dev/null +++ b/sys-process/bpytop/files/bpytop-1.0.63-tests.patch @@ -0,0 +1,35 @@ +diff --git a/bpytop.py b/bpytop.py +index 16482c0..a2b18d6 100755 +--- a/bpytop.py ++++ b/bpytop.py +@@ -63,16 +63,21 @@ args.add_argument("-b", "--boxes", action="store", dest="boxes", help = "which + args.add_argument("-lc", "--low-color", action="store_true", help = "disable truecolor, converts 24-bit colors to 256-color") + args.add_argument("-v", "--version", action="store_true", help = "show version info and exit") + args.add_argument("--debug", action="store_true", help = "start with loglevel set to DEBUG overriding value set in config") +-stdargs = args.parse_args() + +-if stdargs.version: +- print(f'bpytop version: {VERSION}\n' +- f'psutil version: {".".join(str(x) for x in psutil.version_info)}') +- raise SystemExit(0) +- +-ARG_BOXES: str = stdargs.boxes +-LOW_COLOR: bool = stdargs.low_color +-DEBUG: bool = stdargs.debug ++if __name__ == "__main__": ++ stdargs = args.parse_args() ++ if stdargs.version: ++ print(f'bpytop version: {VERSION}\n' ++ f'psutil version: {".".join(str(x) for x in psutil.version_info)}') ++ raise SystemExit(0) ++ ++ ARG_BOXES: str = stdargs.boxes ++ LOW_COLOR: bool = stdargs.low_color ++ DEBUG: bool = stdargs.debug ++else: ++ ARG_BOXES = None ++ LOW_COLOR = False ++ DEBUG = False + + #? Variables -------------------------------------------------------------------------------------> + |