commit: 02c90a7d75af7723b63448452dee234ac7b25880 Author: André Erdmann <dywi <AT> mailerd <DOT> de> AuthorDate: Thu Jul 17 16:23:36 2014 +0000 Commit: André Erdmann <dywi <AT> mailerd <DOT> de> CommitDate: Thu Jul 17 16:23:36 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=02c90a7d
package rules, exact regex acceptor: fix gen_str() minor output enhancement --- roverlay/packagerules/acceptors/stringmatch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roverlay/packagerules/acceptors/stringmatch.py b/roverlay/packagerules/acceptors/stringmatch.py index b6007b6..3fe63b4 100644 --- a/roverlay/packagerules/acceptors/stringmatch.py +++ b/roverlay/packagerules/acceptors/stringmatch.py @@ -140,9 +140,12 @@ class ExactRegexAcceptor ( RegexAcceptor ): # --- end of _matches (...) --- def gen_str ( self, level, match_level ): + # self._regex.pattern is prefixed/suffixed with '^'/'$', + # print regex-match operator, not exact-regex-match + # yield ( self._get_gen_str_indent ( level, match_level ) - + self._get_value_name() + ' ~= ' + self._regex.pattern + + self._get_value_name() + ' ~ ' + self._regex.pattern ) # --- end of gen_str (...) ---