up to 55.0.3
[packages/firefox.git] / idl-parser.patch
CommitLineData
54d6358a
JR
1--- xulrunner-10.0/mozilla/xpcom/idl-parser/xpidl/typelib.py.wiget 2012-02-09 16:31:01.826758036 +0100
2+++ xulrunner-10.0/mozilla/xpcom/idl-parser/xpidl/typelib.py 2012-02-09 16:32:26.473475659 +0100
3@@ -276,7 +276,7 @@ if __name__ == '__main__':
4 o = OptionParser()
5 o.add_option('-I', action='append', dest='incdirs', default=['.'],
6 help="Directory to search for imported files")
7- o.add_option('--cachedir', dest='cachedir', default=None,
8+ o.add_option('--cachedir', dest='cachedir', default='',
9 help="Directory in which to cache lex/parse tables.")
10 o.add_option('-o', dest='outfile', default=None,
11 help="Output file")
12@@ -287,13 +287,13 @@ if __name__ == '__main__':
13 options, args = o.parse_args()
14 file = args[0] if args else None
15
16- if options.cachedir is not None:
17+ if options.cachedir != '':
18 if not os.path.isdir(options.cachedir):
19 os.mkdir(options.cachedir)
20 sys.path.append(options.cachedir)
21
22 if options.regen:
23- if options.cachedir is None:
24+ if options.cachedir == '':
25 print >>sys.stderr, "--regen requires --cachedir"
26 sys.exit(1)
27
This page took 2.106976 seconds and 4 git commands to generate.