Mercurial > piecrust2
changeset 340:794b047c9726
find: Don't change the pattern when there's none.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 06 Apr 2015 20:10:54 -0700 |
parents | 0ab712eab0fb |
children | bd726306d4dc |
files | piecrust/commands/builtin/info.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/commands/builtin/info.py Mon Apr 06 20:01:50 2015 -0700 +++ b/piecrust/commands/builtin/info.py Mon Apr 06 20:10:54 2015 -0700 @@ -139,7 +139,7 @@ def run(self, ctx): pattern = ctx.args.pattern sources = list(ctx.app.sources) - if not ctx.args.exact: + if not ctx.args.exact and pattern is not None: pattern = '*%s*' % pattern for src in sources: