]> granicus.if.org Git - python/commitdiff
Patch from Harry Henry Gebel: fixes a bit of code that slipped by my
authorGreg Ward <gward@python.net>
Sat, 3 Jun 2000 01:03:55 +0000 (01:03 +0000)
committerGreg Ward <gward@python.net>
Sat, 3 Jun 2000 01:03:55 +0000 (01:03 +0000)
overhaul last night.

Lib/distutils/command/bdist_rpm.py

index aecf5c9dec7da6c54fa0f766ad6e263630958ff8..9bce04c1ad6674623ea859d55242b7f275d3cef4 100644 (file)
@@ -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)