From a362c5399abbd4b7d1465bec034a32562f411d91 Mon Sep 17 00:00:00 2001 From: Alessio Ababilov Date: Fri, 21 Jun 2013 23:55:18 +0300 Subject: [PATCH] Do not add script twice in py2rpm Change-Id: I846fd987d15cad3d1d11cef7866f09834aebb404 --- tools/py2rpm | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/py2rpm b/tools/py2rpm index ece7e8cd..b6cfe5e1 100755 --- a/tools/py2rpm +++ b/tools/py2rpm @@ -458,6 +458,7 @@ def build_rpm(options, filename): if os.path.isfile(script_filename): with open(script_filename) as f_in: print >> spec_file, f_in.read() + continue print >> spec_file, DEFAULT_SCRIPTS[script] print >> spec_file, """