From c3a0754c233a3008e84c016d0ce42f9fef3cdd06 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Thu, 23 Jun 2005 20:27:25 +0000 Subject: [PATCH] a couple output fixes --- refpolicy/support/segenxml.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/refpolicy/support/segenxml.py b/refpolicy/support/segenxml.py index a7f547a6..f9093bb8 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.