[Python-checkins] python/dist/src/Lib/distutils/command
bdist_rpm.py, 1.39, 1.40
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Wed Aug 25 15:04:55 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31563/Lib/distutils/command
Modified Files:
bdist_rpm.py
Log Message:
Patch #970015: Replace - by _ in version and release.
Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_rpm.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- bdist_rpm.py 25 Aug 2004 13:00:33 -0000 1.39
+++ bdist_rpm.py 25 Aug 2004 13:04:52 -0000 1.40
@@ -332,8 +332,8 @@
# definitions and headers
spec_file = [
'%define name ' + self.distribution.get_name(),
- '%define version ' + self.distribution.get_version(),
- '%define release ' + self.release,
+ '%define version ' + self.distribution.get_version().replace('-','_'),
+ '%define release ' + self.release.replace('-','_'),
'',
'Summary: ' + self.distribution.get_description(),
]
More information about the Python-checkins
mailing list