diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-08-25 13:04:53 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-08-25 13:04:53 (GMT) |
commit | cae9e673d601a815c06d2755371cfcf89d314239 (patch) | |
tree | b446e6841ca674e87878904bfe0482c95aca1ba2 /Lib/distutils/command | |
parent | cf525241bb14c29f747e5fa3045a57bc80a74557 (diff) | |
download | cpython-cae9e673d601a815c06d2755371cfcf89d314239.zip cpython-cae9e673d601a815c06d2755371cfcf89d314239.tar.gz cpython-cae9e673d601a815c06d2755371cfcf89d314239.tar.bz2 |
Patch #970015: Replace - by _ in version and release.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/bdist_rpm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 43181ea..5c8a757 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -332,8 +332,8 @@ class bdist_rpm (Command): # 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(), ] |