From: Sean Reifschneider Date: Fri, 17 Sep 2004 08:23:22 +0000 (+0000) Subject: SF Patch 1022003: Change bdist_rpm _topdir to use X-Git-Tag: v2.4b1~251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57a6a41e54c132a317b80dd47df1598df3fb4cdf;p=python SF Patch 1022003: Change bdist_rpm _topdir to use os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base --- diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 22eccb9325..18546d2611 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)