]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added a band-aid to make this script work with the older 2.3.0
authorJack Jansen <jack.jansen@cwi.nl>
Sun, 2 Jan 2005 23:17:06 +0000 (23:17 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sun, 2 Jan 2005 23:17:06 +0000 (23:17 +0000)
buildtools if no destroot option is given. That makes life for the
additions installer a lot simpler.

Mac/scripts/BuildApplet.py

index a3bf73ab51b380a778c88d27573b630e246bf31a..f9d94a124ec0a1b125ff12a440e436872236b0b1 100644 (file)
@@ -99,9 +99,14 @@ def buildapplet():
                        if tp == 'APPL':
                                buildtools.update(template, filename, dstfilename)
                        else:
-                               buildtools.process(template, filename, dstfilename, 1,
-                                               rsrcname=rsrcfilename, others=extras, raw=raw,
-                                               progress=verbose, destroot=destroot)
+                               if destroot:
+                                       buildtools.process(template, filename, dstfilename, 1,
+                                                       rsrcname=rsrcfilename, others=extras, raw=raw,
+                                                       progress=verbose, destroot=destroot)
+                               else:
+                                       buildtools.process(template, filename, dstfilename, 1,
+                                                       rsrcname=rsrcfilename, others=extras, raw=raw,
+                                                       progress=verbose)
 
 def usage():
        print "BuildApplet creates an application from a Python source file"