Fixup for bug 754625. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Mon, 14 May 2012 17:55:43 +0200
changeset 98370 3bd6844f2898d2c83bf64ab68fa2626b73adcd5f
parent 98369 9e5b25074f9fd76c4095e5cf9518ee6cc16e45ba
child 98371 498d2784a240243e991e1b5f12c33a6657b6520f
push id173
push userlsblakk@mozilla.com
push dateFri, 24 Aug 2012 15:39:16 +0000
treeherdermozilla-release@bcc45eb1fb41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs754625
milestone15.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fixup for bug 754625. r=ted
xpcom/idl-parser/header.py
--- a/xpcom/idl-parser/header.py
+++ b/xpcom/idl-parser/header.py
@@ -500,18 +500,19 @@ if __name__ == '__main__':
         sys.path.append(options.cachedir)
 
     # The only thing special about a regen is that there are no input files.
     if options.regen:
         if options.cachedir is None:
             print >>sys.stderr, "--regen useless without --cachedir"
         # Delete the lex/yacc files.  Ply is too stupid to regenerate them
         # properly
-        for filename in [os.path.join(options.cachedir, f) for f in ["xpidllex.py", "xpidlyacc.py"]]:
-            os.remove(filename)
+        for fileglobs in [os.path.join(options.cachedir, f) for f in ["xpidllex.py*", "xpidlyacc.py*"]]:
+            for filename in glob.glob(fileglobs):
+                os.remove(filename)
 
     # Instantiate the parser.
     p = xpidl.IDLParser(outputdir=options.cachedir)
 
     if options.regen:
         sys.exit(0)
 
     if options.depfile is not None and options.outfile is None: