[Distutils] bdist_rpm patch

Harry Henry Gebel hgebel@inet.net
Fri, 2 Jun 2000 12:13:47 -0400


--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here is a patch against the current CVS version of Distutils to make it
build RPMs with RPM 3.

-- 
Harry Henry Gebel, Senior Developer, Landon House SBS
West Dover Hundred, Delaware

--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bdist_rpm.patch"

Index: distutils/command/bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/bdist_rpm.py,v
retrieving revision 1.8
diff -u -r1.8 bdist_rpm.py
--- distutils/command/bdist_rpm.py	2000/06/02 02:01:51	1.8
+++ distutils/command/bdist_rpm.py	2000/06/02 16:12:04
@@ -308,9 +308,8 @@
             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)

--17pEHd4RhPHOinZp--