[Python-checkins] python/dist/src/Lib/distutils/command bdist_rpm.py, 1.43, 1.44

jafo at users.sourceforge.net jafo at users.sourceforge.net
Fri Sep 17 10:23:29 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31481/dist/src/Lib/distutils/command

Modified Files:
	bdist_rpm.py 
Log Message:
SF Patch 1022003: Change bdist_rpm _topdir to use
os.path.abspath(self.rpm_base) instead of os.getcwd() + '/' + self.rpm_base


Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_rpm.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- bdist_rpm.py	12 Sep 2004 03:49:30 -0000	1.43
+++ bdist_rpm.py	17 Sep 2004 08:23:22 -0000	1.44
@@ -326,7 +326,7 @@
             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)



More information about the Python-checkins mailing list