summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSean Reifschneider <jafo@tummy.com>2004-09-17 08:23:22 (GMT)
committerSean Reifschneider <jafo@tummy.com>2004-09-17 08:23:22 (GMT)
commit57a6a41e54c132a317b80dd47df1598df3fb4cdf (patch)
treecadaeb92cfce063d486a0cf4ed8705802278cf0f /Lib/distutils
parentcfc31926774f876323e64cb13a26de0d7061be4c (diff)
downloadcpython-57a6a41e54c132a317b80dd47df1598df3fb4cdf.zip
cpython-57a6a41e54c132a317b80dd47df1598df3fb4cdf.tar.gz
cpython-57a6a41e54c132a317b80dd47df1598df3fb4cdf.tar.bz2
SF Patch 1022003: Change bdist_rpm _topdir to use
os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist_rpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 22eccb9..18546d2 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -326,7 +326,7 @@ class bdist_rpm (Command):
rpm_cmd.append('-ba')
if self.rpm3_mode:
rpm_cmd.extend(['--define',
- '_topdir %s/%s' % (os.getcwd(), self.rpm_base),])
+ '_topdir %s' % os.path.abspath(self.rpm_base)])
if not self.keep_temp:
rpm_cmd.append('--clean')
rpm_cmd.append(spec_path)