[Python-checkins] python/dist/src/Lib/distutils/command install.py, 1.67, 1.67.14.1

theller at users.sourceforge.net theller at users.sourceforge.net
Thu Jan 20 20:16:33 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv438

Modified Files:
      Tag: release23-maint
	install.py 
Log Message:
Fix [ 1103844 ] fix distutils.install.dump_dirs() with negated options.

Backport from trunk.


Index: install.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/install.py,v
retrieving revision 1.67
retrieving revision 1.67.14.1
diff -u -d -r1.67 -r1.67.14.1
--- install.py	19 Nov 2002 13:12:28 -0000	1.67
+++ install.py	20 Jan 2005 19:16:27 -0000	1.67.14.1
@@ -356,8 +356,13 @@
                 opt_name = opt[0]
                 if opt_name[-1] == "=":
                     opt_name = opt_name[0:-1]
-                opt_name = string.translate(opt_name, longopt_xlate)
-                val = getattr(self, opt_name)
+                if self.negative_opt.has_key(opt_name):
+                    opt_name = string.translate(self.negative_opt[opt_name],
+                                                longopt_xlate)
+                    val = not getattr(self, opt_name)
+                else:
+                    opt_name = string.translate(opt_name, longopt_xlate)
+                    val = getattr(self, opt_name)
                 print "  %s: %s" % (opt_name, val)
 
 



More information about the Python-checkins mailing list