Commit 39b1307
fix(map.jinja): fix useflags regex (gentoo)
* fix(map.jinja): fix useflags regex
When using version inside useflag, the sls_block macro with ebuildpkg regex result in a range error.
Replacing the version argument with uses seem to work as escapes don't really work there.
fix(map.jinja): replace all problematic lines
fix(map.jinja): update available targets
```
----------
ID: php_install_imagick_dev-php-pecl-imagick
Function: pkg.installed
Name: dev-php/pecl-imagick
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/salt/state.py", line 1933, in call
**cdata['kwargs'])
File "/usr/lib64/python3.6/site-packages/salt/loader.py", line 1951, in wrapper
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 1563, in installed
**kwargs)
File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 651, in _find_install_targets
for name, version in desired.items()
File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 652, in <listcomp>
if not (name in cur_pkgs and (version is None or _fulfills_version_string(cur_pkgs[name], version)))
File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 216, in _fulfills_version_string
fullfills_all = fullfills_all and _fulfills_version_spec([installed_version], operator, version_string, ignore_epoch=ignore_epoch)
File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 234, in _fulfills_version_spec
if (oper == '==' and fnmatch.fnmatch(ver, desired_version)) \
File "/usr/lib64/python3.6/fnmatch.py", line 36, in fnmatch
return fnmatchcase(name, pat)
File "/usr/lib64/python3.6/fnmatch.py", line 70, in fnmatchcase
match = _compile_pattern(pat)
File "/usr/lib64/python3.6/fnmatch.py", line 46, in _compile_pattern
return re.compile(res).match
File "/usr/lib64/python3.6/re.py", line 233, in compile
return _compile(pattern, flags)
File "/usr/lib64/python3.6/re.py", line 301, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib64/python3.6/sre_compile.py", line 562, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib64/python3.6/sre_parse.py", line 855, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
not nested and not items))
File "/usr/lib64/python3.6/sre_parse.py", line 765, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
not nested and not items))
File "/usr/lib64/python3.6/sre_parse.py", line 553, in _parse
raise source.error(msg, len(this) + 1 + len(that))
sre_constants.error: bad character range 7-3 at position 20
Started: 14:28:26.927898
Duration: 6321.149 ms
Changes:
```
* Use single-quoting
Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>1 parent 0090c91 commit 39b1307
1 file changed
+25
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2679 | 2679 | | |
2680 | 2680 | | |
2681 | 2681 | | |
2682 | | - | |
| 2682 | + | |
2683 | 2683 | | |
2684 | 2684 | | |
2685 | 2685 | | |
| |||
2820 | 2820 | | |
2821 | 2821 | | |
2822 | 2822 | | |
| 2823 | + | |
2823 | 2824 | | |
2824 | | - | |
2825 | | - | |
| 2825 | + | |
| 2826 | + | |
2826 | 2827 | | |
2827 | 2828 | | |
2828 | 2829 | | |
2829 | 2830 | | |
2830 | 2831 | | |
| 2832 | + | |
2831 | 2833 | | |
2832 | 2834 | | |
| 2835 | + | |
2833 | 2836 | | |
2834 | 2837 | | |
| 2838 | + | |
| 2839 | + | |
2835 | 2840 | | |
2836 | 2841 | | |
2837 | | - | |
| 2842 | + | |
2838 | 2843 | | |
2839 | 2844 | | |
2840 | | - | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
2841 | 2848 | | |
2842 | 2849 | | |
2843 | 2850 | | |
2844 | 2851 | | |
2845 | 2852 | | |
2846 | 2853 | | |
2847 | 2854 | | |
2848 | | - | |
2849 | | - | |
2850 | | - | |
2851 | | - | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
2852 | 2860 | | |
2853 | 2861 | | |
2854 | 2862 | | |
2855 | 2863 | | |
2856 | 2864 | | |
2857 | | - | |
| 2865 | + | |
2858 | 2866 | | |
2859 | 2867 | | |
2860 | 2868 | | |
2861 | 2869 | | |
2862 | 2870 | | |
2863 | | - | |
| 2871 | + | |
| 2872 | + | |
2864 | 2873 | | |
2865 | 2874 | | |
2866 | | - | |
| 2875 | + | |
2867 | 2876 | | |
2868 | | - | |
2869 | 2877 | | |
2870 | 2878 | | |
2871 | 2879 | | |
2872 | | - | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
2873 | 2883 | | |
| 2884 | + | |
2874 | 2885 | | |
2875 | 2886 | | |
2876 | 2887 | | |
| |||
0 commit comments