Commits

Michał Górny committed ffd4646

Fix '**' keyword support regression.

  • Participants
  • Parent commits 99fdc3a

Comments (0)

Files changed (1)

lib/flaggie/action.py

 
 			if not arg:
 				arg = '*'
+
 			# Check whether the argument looks like a pattern
-			for schr in ('*', '?', '['):
-				if schr in arg:
-					if not ns:
-						ns = frozenset(('use',))
-					self.ns = ns
-					self.args.add(self.Pattern(arg))
-					return
+			# but denote that '**' has special meaning.
+			if arg != '**':
+				for schr in ('*', '?', '['):
+					if schr in arg:
+						if not ns:
+							ns = frozenset(('use',))
+						self.ns = ns
+						self.args.add(self.Pattern(arg))
+						return
 
 			warn = None
 			if not pkgs: