summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_rpm.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-06 21:01:19 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-06 21:01:19 (GMT)
commit21d45356b8a22bb3091a97f50b919b57798675f5 (patch)
treebdfd02aba3e9f0a243296721cb8ec2c75be9c08a /Lib/distutils/command/bdist_rpm.py
parentb94b849d65af71b4b432a74fdaef8ccd88209cc0 (diff)
downloadcpython-21d45356b8a22bb3091a97f50b919b57798675f5.zip
cpython-21d45356b8a22bb3091a97f50b919b57798675f5.tar.gz
cpython-21d45356b8a22bb3091a97f50b919b57798675f5.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/distutils/command/bdist_rpm.py')
-rw-r--r--Lib/distutils/command/bdist_rpm.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 150fdec..037ed9e 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -101,7 +101,7 @@ class bdist_rpm (Command):
'no-rpm-opt-flags': 'use-rpm-opt-flags',
'rpm2-mode': 'rpm3-mode'}
-
+
def initialize_options (self):
self.bdist_base = None
self.rpm_base = None
@@ -184,7 +184,7 @@ class bdist_rpm (Command):
self.ensure_string('vendor',
"%s <%s>" % (self.distribution.get_contact(),
self.distribution.get_contact_email()))
- self.ensure_string('packager')
+ self.ensure_string('packager')
self.ensure_string_list('doc_files')
if type(self.doc_files) is ListType:
for readme in ('README', 'README.txt'):
@@ -201,7 +201,7 @@ class bdist_rpm (Command):
self.changelog = self._format_changelog(self.changelog)
self.ensure_filename('icon')
-
+
self.ensure_filename('prep_script')
self.ensure_filename('build_script')
self.ensure_filename('install_script')
@@ -275,7 +275,7 @@ class bdist_rpm (Command):
else:
raise DistutilsFileError, \
"icon file '%s' does not exist" % self.icon
-
+
# build package
self.announce('building RPMs')
@@ -368,17 +368,17 @@ class bdist_rpm (Command):
spec_file.append('%s: %s' % (field, string.join(val)))
elif val is not None:
spec_file.append('%s: %s' % (field, val))
-
-
+
+
if self.distribution.get_url() != 'UNKNOWN':
spec_file.append('Url: ' + self.distribution.get_url())
if self.distribution_name:
- spec_file.append('Distribution: ' + self.distribution_name)
+ spec_file.append('Distribution: ' + self.distribution_name)
if self.build_requires:
- spec_file.append('BuildRequires: ' +
- string.join(self.build_requires))
+ spec_file.append('BuildRequires: ' +
+ string.join(self.build_requires))
if self.icon:
spec_file.append('Icon: ' + os.path.basename(self.icon))
@@ -473,11 +473,11 @@ class bdist_rpm (Command):
new_changelog.append(line)
else:
new_changelog.append(' ' + line)
-
+
# strip trailing newline inserted by first changelog entry
if not new_changelog[0]:
del new_changelog[0]
-
+
return new_changelog
# _format_changelog()