1. Michał Górny
  2. flaggie

Commits

Michał Górny  committed 3aaaa9f

(Partially) support disabling USE_EXPAND vars.

  • Participants
  • Parent commits 7f315f3
  • Branches master

Comments (0)

Files changed (1)

File lib/flaggie/makeconf.py

View file
  • Ignore whitespace
 			def toString(self, raw = False):
 				ret = MakeConfVariable.FlattenedToken.MakeConfFlag.toString(self)
 				if raw:
-					ret = ret.replace(self.prefix, '', 1)
+					if ret.startswith('-'):
+						ret = ''
+					else:
+						ret = ret.replace(self.prefix, '', 1)
 				return ret
 
 		class Whitespace(object):