mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sys-boot/woeusb-ng: fix syntax warning in Python 3.12
https://github.com/WoeUSB/WoeUSB-ng/pull/134 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41211 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
committed by
Viorel Munteanu
parent
b4a270d35e
commit
9ba869dfdf
16
sys-boot/woeusb-ng/files/woeusb-ng-0.2.12-python3.12.patch
Normal file
16
sys-boot/woeusb-ng/files/woeusb-ng-0.2.12-python3.12.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
https://github.com/WoeUSB/WoeUSB-ng/pull/134
|
||||
Fix invalid escape sequence
|
||||
\. is not a valid escape sequence since Python 3.12 and generates a warning.
|
||||
It will become an error in a future version.
|
||||
https://docs.python.org/3.12/whatsnew/3.12.html#other-language-changes
|
||||
--- a/WoeUSB/workaround.py
|
||||
+++ b/WoeUSB/workaround.py
|
||||
@@ -52,7 +52,7 @@ def support_windows_7_uefi_boot(source_fs_mountpoint, target_fs_mountpoint):
|
||||
:param target_fs_mountpoint:
|
||||
:return:
|
||||
"""
|
||||
- grep = subprocess.run(["grep", "--extended-regexp", "--quiet", "^MinServer=7[0-9]{3}\.[0-9]",
|
||||
+ grep = subprocess.run(["grep", "--extended-regexp", "--quiet", r"^MinServer=7[0-9]{3}\.[0-9]",
|
||||
source_fs_mountpoint + "/sources/cversion.ini"],
|
||||
stdout=subprocess.PIPE).stdout.decode("utf-8").strip()
|
||||
if grep == "" and not os.path.isfile(source_fs_mountpoint + "/bootmgr.efi"):
|
||||
@@ -36,6 +36,7 @@ RDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-pkg-discovery.patch
|
||||
"${FILESDIR}"/${P}-python3.12.patch
|
||||
"${FILESDIR}"/${P}-skip-postinstall.patch
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user