summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_rpm.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-21 20:56:35 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-21 20:56:35 (GMT)
commit55f1bb8bfa362569b6698a91a1cf421bdfcd13d7 (patch)
treebeea9fb70aee8ff05b1f6fa78bd04e5d2a668bdf /Lib/distutils/command/bdist_rpm.py
parente6c430dffe5618016c516578726c0a7aa1471a9e (diff)
downloadcpython-55f1bb8bfa362569b6698a91a1cf421bdfcd13d7.zip
cpython-55f1bb8bfa362569b6698a91a1cf421bdfcd13d7.tar.gz
cpython-55f1bb8bfa362569b6698a91a1cf421bdfcd13d7.tar.bz2
Add the upload command. Make all dist commands register their
outputs with the distribution object.
Diffstat (limited to 'Lib/distutils/command/bdist_rpm.py')
-rw-r--r--Lib/distutils/command/bdist_rpm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 8eaaff3..09bfa43 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -297,12 +297,14 @@ class bdist_rpm (Command):
# Make a source distribution and copy to SOURCES directory with
# optional icon.
+ saved_dist_files = self.distributuion.dist_files[:]
sdist = self.reinitialize_command('sdist')
if self.use_bzip2:
sdist.formats = ['bztar']
else:
sdist.formats = ['gztar']
self.run_command('sdist')
+ self.distribution.dist_files = saved_dist_files
source = sdist.get_archive_files()[0]
source_dir = rpm_dir['SOURCES']
@@ -355,6 +357,7 @@ class bdist_rpm (Command):
assert len(rpms) == 1, \
"unexpected number of RPM files found: %s" % rpms
self.move_file(rpms[0], self.dist_dir)
+ self.distribution.dist_files.append(('bdist_rpm', rpms[0]))
if debuginfo:
self.move_file(debuginfo[0], self.dist_dir)
# run()