summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/distutils/command/bdist_rpm.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index aecf5c9..9bce04c 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -308,9 +308,8 @@ class bdist_rpm (Command):
rpm_args.append('-bb')
else:
rpm_args.append('-ba')
- topdir = os.getcwd() + 'build/rpm'
rpm_args.extend(['--define',
- '_topdir ' + os.getcwd() + '/build/rpm',])
+ '_topdir %s/%s' % (os.getcwd(), rpm_base),])
if self.clean:
rpm_args.append('--clean')
rpm_args.append(spec_path)