mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-admin/run0edit: fix Py QA
Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
@@ -31,9 +31,7 @@ DOCS=( {CHANGELOG,SECURITY,README}.md )
|
|||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
mv run0edit_main.py run0edit || die
|
python_fix_shebang run0edit_main.py run0edit_inner.py
|
||||||
|
|
||||||
python_fix_shebang run0edit run0edit_inner.py
|
|
||||||
|
|
||||||
local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
|
local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
|
||||||
local sitedir=$(python_get_sitedir)
|
local sitedir=$(python_get_sitedir)
|
||||||
@@ -45,13 +43,13 @@ src_prepare() {
|
|||||||
N
|
N
|
||||||
s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
|
s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
|
||||||
}" \
|
}" \
|
||||||
run0edit || die
|
run0edit_main.py || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
python_domodule run0edit_inner.py
|
python_domodule run0edit_inner.py
|
||||||
|
|
||||||
python_doscript run0edit
|
python_newscript run0edit_main.py run0edit
|
||||||
|
|
||||||
einstalldocs
|
einstalldocs
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,9 +31,7 @@ DOCS=( {CHANGELOG,SECURITY,README}.md )
|
|||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
mv run0edit_main.py run0edit || die
|
python_fix_shebang run0edit_main.py run0edit_inner.py
|
||||||
|
|
||||||
python_fix_shebang run0edit run0edit_inner.py
|
|
||||||
|
|
||||||
local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
|
local b2=$(b2sum "${S}"/run0edit_inner.py | cut -d' ' -f1)
|
||||||
local sitedir=$(python_get_sitedir)
|
local sitedir=$(python_get_sitedir)
|
||||||
@@ -45,13 +43,13 @@ src_prepare() {
|
|||||||
N
|
N
|
||||||
s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
|
s|^.*|INNER_SCRIPT_B2: Final[str] = \"${b2}\"|
|
||||||
}" \
|
}" \
|
||||||
run0edit || die
|
run0edit_main.py || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
python_domodule run0edit_inner.py
|
python_domodule run0edit_inner.py
|
||||||
|
|
||||||
python_doscript run0edit
|
python_newscript run0edit_main.py run0edit
|
||||||
|
|
||||||
einstalldocs
|
einstalldocs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user