Add patch from Vitaly Shimansky to fix regex in modify_packages()
authorPaul Varner <fuzzyray@gentoo.org>
Tue, 20 Mar 2012 03:59:02 +0000 (22:59 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Tue, 20 Mar 2012 03:59:02 +0000 (22:59 -0500)
bin/euse

index 9c00cc315a3b339195a6a206ed834928a61c4edf..24edeb9ceb59d9d57132f96f93f15a5fd78db228 100755 (executable)
--- a/bin/euse
+++ b/bin/euse
@@ -1036,7 +1036,7 @@ scrub_use_flag() {
 modify_package() {
        get_useflags
 
-       local atom_re="^[<>]?=?([a-z][\da-z/-]+[a-z])(-[0-9pr._*-]+)?"
+       local atom_re="^[<>]?=?([a-z][0-9a-z/-]+[a-z])(-[0-9pr._*-]+)?"
        local pkg=$(echo "${PACKAGE}" | sed -re "s/${atom_re}/\1/")
        local V=$(echo "${PACKAGE}" | sed -re "s/${atom_re}/\2/")
        local pkg_re="[<>]?=?${pkg}(-[\dpr._*-]+)?"