app-admin/run0edit: fix Py QA

Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2026-03-15 16:08:26 -03:00
parent 8e65151d8e
commit 3928857d2e
2 changed files with 6 additions and 10 deletions

View File

@@ -31,9 +31,7 @@ DOCS=( {CHANGELOG,SECURITY,README}.md )
src_prepare() {
default
mv run0edit_main.py run0edit || die
python_fix_shebang run0edit run0edit_inner.py
python_fix_shebang run0edit_main.py run0edit_inner.py
local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
local sitedir=$(python_get_sitedir)
@@ -45,13 +43,13 @@ src_prepare() {
N
s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
}" \
run0edit || die
run0edit_main.py || die
}
src_install() {
python_domodule run0edit_inner.py
python_doscript run0edit
python_newscript run0edit_main.py run0edit
einstalldocs
}

View File

@@ -31,9 +31,7 @@ DOCS=( {CHANGELOG,SECURITY,README}.md )
src_prepare() {
default
mv run0edit_main.py run0edit || die
python_fix_shebang run0edit run0edit_inner.py
python_fix_shebang run0edit_main.py run0edit_inner.py
local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
local sitedir=$(python_get_sitedir)
@@ -45,13 +43,13 @@ src_prepare() {
N
s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
}" \
run0edit || die
run0edit_main.py || die
}
src_install() {
python_domodule run0edit_inner.py
python_doscript run0edit
python_newscript run0edit_main.py run0edit
einstalldocs
}