ALT Linux Bugzilla
– Attachment 10327 Details for
Bug 42002
Использовать python3 в скрипте extract_homm2_resources.sh
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Использовать python3 в скрипте extract_homm2_resources.sh
fheroes2-0.9.11-use-python3.patch (text/plain), 972 bytes, created by
Антон Мидюков
on 2022-02-20 09:35:19 MSK
(
hide
)
Description:
Использовать python3 в скрипте extract_homm2_resources.sh
Filename:
MIME Type:
Creator:
Антон Мидюков
Created:
2022-02-20 09:35:19 MSK
Size:
972 bytes
patch
obsolete
>diff --git a/script/homm2/extract_homm2_resources.sh b/script/homm2/extract_homm2_resources.sh >index c0b39d363..b41a6efa2 100644 >--- a/script/homm2/extract_homm2_resources.sh >+++ b/script/homm2/extract_homm2_resources.sh >@@ -79,8 +79,8 @@ if [[ ! -f "$HOMM2_PATH/homm2.gog" ]]; then > fi > > # Special case - CD image from GOG >-if [[ "$(command -v python)" == "" ]]; then >- echo_yellow "python not found in your system. Please install it and re-run this script to extract animation resources." >+if [[ "$(command -v python3)" == "" ]]; then >+ echo_yellow "python3 not found in your system. Please install it and re-run this script to extract animation resources." > exit 0 > fi > if [[ "$(command -v bsdtar)" == "" ]]; then >@@ -90,7 +90,7 @@ fi > > echo_green "Extracting animation resources, please wait..." > >-python - << EOF >+python3 - << EOF > with open("$HOMM2_PATH/homm2.gog", "rb") as raw_file: > with open("homm2.iso", "wb") as iso_file: > while True:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42002
: 10327