Do not add script twice in py2rpm

Change-Id: I846fd987d15cad3d1d11cef7866f09834aebb404
This commit is contained in:
Alessio Ababilov 2013-06-21 23:55:18 +03:00 committed by Joshua Harlow
parent ecb639570b
commit a362c5399a

View File

@ -458,6 +458,7 @@ def build_rpm(options, filename):
if os.path.isfile(script_filename): if os.path.isfile(script_filename):
with open(script_filename) as f_in: with open(script_filename) as f_in:
print >> spec_file, f_in.read() print >> spec_file, f_in.read()
continue
print >> spec_file, DEFAULT_SCRIPTS[script] print >> spec_file, DEFAULT_SCRIPTS[script]
print >> spec_file, """ print >> spec_file, """