mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
sys-process/bpytop-1.0.61: Fix patch
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..9} pypy3 )
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=pyproject.toml
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -23,11 +23,5 @@ RDEPEND="
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/bpytop-1.0.51-tests.patch"
|
||||
"${FILESDIR}/bpytop-1.0.61-tests.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}/themes"
|
||||
doins bpytop-themes/*.theme
|
||||
distutils-r1_src_install
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user