diff options
author | Dan McGee <dan@archlinux.org> | 2015-04-12 09:50:13 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2015-04-12 09:50:13 -0500 |
commit | a2b020ed3554b47c0b27982cf47431126c103ef4 (patch) | |
tree | af079b96a1eae0cb464028d9322ff7236c971560 /mirrors | |
parent | 57198b5cb45fb390b2fa75faff371d323de27dab (diff) |
Add true parameter to Jinja2 default filter
We need this to make it act more like the Django filter, which prints
the default value not only when the variable is undefined, but also when
it evaluates to being false (such as a None value).
Noticed by felixonmars on packages that provided other packages; None
was always showing as the comparison operator. More embarrassing is that
our file lists were always showing 'None' concatenated onto all
directory entries.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
0 files changed, 0 insertions, 0 deletions