From 0ff3fb518893714e09bcdc1ef74d7f40a4c18fb5 Mon Sep 17 00:00:00 2001 From: Ales Raszka Date: Feb 23 2016 09:08:10 +0000 Subject: fix: print all tags without filter Signed-off-by: Ales Raszka --- diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py index a433fdf..c06d0df 100644 --- a/src/pyrpkg/__init__.py +++ b/src/pyrpkg/__init__.py @@ -1485,10 +1485,12 @@ class Commands(object): with fnmatch). """ + if tagname is None: + tagname = '*' tags = map(lambda t: t.name, self.repo.tags) - if tagname is not '*': + if tagname != '*': tags = filter(lambda t: fnmatch.fnmatch(t, tagname), tags) for tag in tags: