When invoking `euse -p` with a package name containing a number, e.g. sys-fs/lvm2, euse fails with an error: Invalid package atom. # euse -p sys-fs/lvm2 thin ERROR: Invalid package atom. Did you forget the leading '='? Other gentoolkit tools e.g. equery, epkginfo do handle such names correctly.
Looks like an issue with the regex. This fixes it: diff --git i/bin/euse w/bin/euse index 7d5c83a..e60cab0 100755 --- i/bin/euse +++ w/bin/euse @@ -1070,7 +1070,7 @@ scrub_use_flag() { modify_package() { get_useflags - local atom_re="^[<>]?=?([a-z][0-9a-z/-]+[a-z])(-[0-9pr._*-]+)?" + local atom_re="^[<>]?=?([a-z][0-9a-z/-]+[0-9a-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._*-]+)?"
Patch pushed to git.
fixed in commit: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=dc21831a9a058c8f3c110674c5d3dd0de757cb5c It is available now in gentoolkit-9999.