summaryrefslogtreecommitdiff
path: root/sys-process/bpytop/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-29 18:03:51 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-29 18:03:51 +0000
commitd7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (patch)
tree1814dd2b5bbf2e7639fdafbeef48d228cfaf5e9b /sys-process/bpytop/files
parentabaa75b10f899ada8dd05b23cc03205064394bc6 (diff)
gentoo resync : 29.01.2021
Diffstat (limited to 'sys-process/bpytop/files')
-rw-r--r--sys-process/bpytop/files/bpytop-1.0.61-tests.patch20
1 files changed, 20 insertions, 0 deletions
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