summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-09-16 15:54:18 (GMT)
committerGreg Ward <gward@python.net>2000-09-16 15:54:18 (GMT)
commit8099f0e5fc115d95d05098082d7afc77f22f98c6 (patch)
treecd27bec56619006fb43d343de2d2002db669709e /Lib
parent842903649631cf7ad0569ecae182e54776201fb4 (diff)
downloadcpython-8099f0e5fc115d95d05098082d7afc77f22f98c6.zip
cpython-8099f0e5fc115d95d05098082d7afc77f22f98c6.tar.gz
cpython-8099f0e5fc115d95d05098082d7afc77f22f98c6.tar.bz2
Renamed --clean to --no-keep-temp and --noclean to --keep-temp.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/bdist_rpm.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 9bddddc..2afc714 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -97,10 +97,10 @@ class bdist_rpm (Command):
"capabilities made obsolete by this package"),
# Actions to take when building RPM
- ('clean', None,
- "clean up RPM build directory [default]"),
- ('no-clean', None,
+ ('keep-temp', 'k',
"don't clean up RPM build directory"),
+ ('no-keep-temp', None,
+ "clean up RPM build directory [default]"),
('use-rpm-opt-flags', None,
"compile with RPM_OPT_FLAGS when building from source RPM"),
('no-rpm-opt-flags', None,
@@ -111,7 +111,7 @@ class bdist_rpm (Command):
"RPM 2 compatibility mode"),
]
- negative_opt = {'no-clean': 'clean',
+ negative_opt = {'no-keep-temp': 'keep-temp',
'no-rpm-opt-flags': 'use-rpm-opt-flags',
'rpm2-mode': 'rpm3-mode'}
@@ -152,7 +152,7 @@ class bdist_rpm (Command):
self.build_requires = None
self.obsoletes = None
- self.clean = 1
+ self.keep_temp = 0
self.use_rpm_opt_flags = 1
self.rpm3_mode = 1
@@ -303,7 +303,7 @@ class bdist_rpm (Command):
if self.rpm3_mode:
rpm_cmd.extend(['--define',
'_topdir %s/%s' % (os.getcwd(), self.rpm_base),])
- if self.clean:
+ if not self.keep_temp:
rpm_cmd.append('--clean')
rpm_cmd.append(spec_path)
self.spawn(rpm_cmd)