diff options
author | André Erdmann <dywi@mailerd.de> | 2014-07-17 18:23:36 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2014-07-17 18:23:36 +0200 |
commit | 02c90a7d75af7723b63448452dee234ac7b25880 (patch) | |
tree | 4deaf676d2921f1a165c84755584287189aaf681 | |
parent | package rules: add "version" match keyword (diff) | |
download | R_overlay-02c90a7d75af7723b63448452dee234ac7b25880.tar.gz R_overlay-02c90a7d75af7723b63448452dee234ac7b25880.tar.bz2 R_overlay-02c90a7d75af7723b63448452dee234ac7b25880.zip |
package rules, exact regex acceptor: fix gen_str()
minor output enhancement
-rw-r--r-- | roverlay/packagerules/acceptors/stringmatch.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 (...) --- |