[Python-checkins] python/dist/src/Lib/distutils/command install.py,
1.72, 1.72.2.1
theller at users.sourceforge.net
theller at users.sourceforge.net
Thu Jan 20 20:15:44 CET 2005
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32599
Modified Files:
Tag: release24-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.72
retrieving revision 1.72.2.1
diff -u -d -r1.72 -r1.72.2.1
--- install.py 10 Nov 2004 22:23:15 -0000 1.72
+++ install.py 20 Jan 2005 19:15:39 -0000 1.72.2.1
@@ -352,8 +352,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