summaryrefslogtreecommitdiff
path: root/sys-process/bpytop/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-31 18:57:01 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-31 18:57:01 +0000
commit69051588e2f955485fe5d45d45e616bc60a2de57 (patch)
treeef8699cca7ce3773b1de747b167ceeacdc60cb92 /sys-process/bpytop/files
parentd7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (diff)
gentoo resync : 31.01.2021
Diffstat (limited to 'sys-process/bpytop/files')
-rw-r--r--sys-process/bpytop/files/bpytop-1.0.51-tests.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/sys-process/bpytop/files/bpytop-1.0.51-tests.patch b/sys-process/bpytop/files/bpytop-1.0.51-tests.patch
deleted file mode 100644
index 3e5de4751fd9..000000000000
--- a/sys-process/bpytop/files/bpytop-1.0.51-tests.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff --git a/bpytop.py b/bpytop.py
-index a1c2b3a..b1cc28e 100755
---- a/bpytop.py
-+++ b/bpytop.py
-@@ -64,23 +64,27 @@ args.add_argument("-p" , "--proc" ,action="store_true" ,help ="Start in minimal
- args.add_argument("-s" , "--stat" ,action="store_true" ,help ="Start in minimal mode without process box")
- 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_MODE: str = ""
-
--if stdargs.full:
-- ARG_MODE = "full"
--elif stdargs.proc:
-- ARG_MODE = "proc"
--elif stdargs.stat:
-- ARG_MODE = "stat"
-+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)
-
--DEBUG = stdargs.debug
-+ if stdargs.full:
-+ ARG_MODE = "full"
-+ elif stdargs.proc:
-+ ARG_MODE = "proc"
-+ elif stdargs.stat:
-+ ARG_MODE = "stat"
-+
-+ DEBUG = stdargs.debug
-+else:
-+ DEBUG = False
-
- #? Variables ------------------------------------------------------------------------------------->
-