File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 77from setuptools .command .bdist_rpm import bdist_rpm as base
88import os
99
10+
1011# cribbed from 2.7 distutils
11- def write_file (filename , contents ):
12+ def write_file (filename , contents ):
1213 """Create a file with the specified name and write 'contents' (a
1314 sequence of strings without line terminators) to it.
1415 """
@@ -19,6 +20,7 @@ def write_file (filename, contents):
1920 finally :
2021 f .close ()
2122
23+
2224class bdist_rpm (base ):
2325
2426 def finalize_options (self ):
@@ -38,8 +40,7 @@ def finalize_options(self):
3840 # man page here is any file
3941 # with single-character extension
4042 # in man directory
41- "sed -e 's,\(/man/.*\..\)$,\\ 1*,' "
42- "<ROUNDUP_FILES >INSTALLED_FILES" ,
43+ r "sed -e 's,\(/man/.*\..\)$,\\1*,' "
44+ "<ROUNDUP_FILES >INSTALLED_FILES" ,
4345 ]), "writing '%s'" % install_script )
4446 self .install_script = install_script
45-
You can’t perform that action at this time.
0 commit comments