Summary: | profile.eselect breaks when overlay contains '-gentoo' substring | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Ulrich Müller <ulm> |
Component: | eselect | Assignee: | Gentoo eselect Team <eselect> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | slyfox |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch for profile.eselect |
Description
Ulrich Müller
2012-02-11 22:05:54 UTC
Thanks for pointing this out. There's a small problem with your patch: ^ and $ don't match beginning and end of line, but beginning and end of pattern. Therefore the second substitution won't have any effect at all. However, this can be cured by adding the "m" flag to the substitution. Can you try if the following change fixes the problem for you: - | sed "s/[[:space:]]\+/\n/g;s/\b${DEFAULT_REPO}\b/ &/" \ + | sed "s/[[:space:]]\+/\n/g;s/^${DEFAULT_REPO}\$/ &/gm" \ (In reply to comment #1) > Thanks for pointing this out. There's a small problem with your patch: ^ and $ > don't match beginning and end of line, but beginning and end of pattern. > Therefore the second substitution won't have any effect at all. > > However, this can be cured by adding the "m" flag to the substitution. Can you > try if the following change fixes the problem for you: > > - | sed "s/[[:space:]]\+/\n/g;s/\b${DEFAULT_REPO}\b/ &/" \ > + | sed "s/[[:space:]]\+/\n/g;s/^${DEFAULT_REPO}\$/ &/gm" \ Oh, my sed is very weak. Looks like I was very lucky having 'gentoo' alphasorted properly. Your change works for me as well. Thanks! <http://sources.gentoo.org/cgi-bin/viewvc.cgi/eselect?view=revision&revision=865> +2012-02-12 Ulrich Müller <ulm@gentoo.org> + + * modules/profile.eselect (get_repos): Fix regular expression + for overlays, bug 403215. Thanks to Sergei Trofimovich + <slyfox@gentoo.org>. + This is fixed in eselect-1.3.1. |