From d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 29 Jan 2021 18:03:51 +0000 Subject: gentoo resync : 29.01.2021 --- sys-process/bpytop/files/bpytop-1.0.61-tests.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys-process/bpytop/files/bpytop-1.0.61-tests.patch (limited to 'sys-process/bpytop/files') diff --git a/sys-process/bpytop/files/bpytop-1.0.61-tests.patch b/sys-process/bpytop/files/bpytop-1.0.61-tests.patch new file mode 100644 index 000000000000..51cef1ce6394 --- /dev/null +++ b/sys-process/bpytop/files/bpytop-1.0.61-tests.patch @@ -0,0 +1,20 @@ +diff --git a/bpytop.py b/bpytop.py +index 38d6e8b..12e4853 100755 +--- a/bpytop.py ++++ b/bpytop.py +@@ -65,10 +65,11 @@ args.add_argument("-v", "--version", action="store_true", help = "show versio + 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) ++if __name__ == "__main__": ++ 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 -- cgit v1.2.3