From c3a0754c233a3008e84c016d0ce42f9fef3cdd06 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Jun 23 2005 20:27:25 +0000 Subject: a couple output fixes --- diff --git a/refpolicy/support/segenxml.py b/refpolicy/support/segenxml.py index a7f547a..f9093bb 100755 --- a/refpolicy/support/segenxml.py +++ b/refpolicy/support/segenxml.py @@ -64,9 +64,9 @@ def getFileBase(file_name): # encountered, ignores hidden files denoted by a leading ','. for i in range(1,len(file_name)-1): if file_name[-i] == '.': - return file_name[:-i] + return os.path.basename(file_name[:-i]) - return file_name + return os.path.basename(file_name) def getXMLComment(line): ''' @@ -275,11 +275,11 @@ def getTunableXML(file_name): # and give it the data from the temprorary buffer. if params: tunable_buf.append\ - ("" + ("\n" % (params[0], params[1])) tunable_buf += temp_buf temp_buf = [] - tunable_buf.append("") + tunable_buf.append("\n") # If there are XML comments at the end of the file, they arn't # attributed to anything. These are ignored.