Commits

Michał Górny committed 3aaaa9f

(Partially) support disabling USE_EXPAND vars.

Comments (0)

Files changed (1)

lib/flaggie/makeconf.py

 			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):