2007-02-15 20:57:51 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/Makefile policycoreutils-2.0.1/sepolgen-1.0.0/src/sepolgen/Makefile
|
|
|
|
--- nsasepolgen/src/sepolgen/Makefile 2007-02-07 12:12:15.000000000 -0500
|
|
|
|
+++ policycoreutils-2.0.1/sepolgen-1.0.0/src/sepolgen/Makefile 2007-02-15 15:56:05.000000000 -0500
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-PYTHONLIBDIR ?= `python -c "from distutils.sysconfig import *; print get_python_lib()"`
|
2007-02-16 13:55:14 +00:00
|
|
|
+PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib(1)")
|
2007-02-15 20:57:51 +00:00
|
|
|
PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/sepolgen
|
|
|
|
|
|
|
|
install:
|
2007-02-15 20:27:16 +00:00
|
|
|
diff --exclude-from=exclude -N -u -r nsasepolgen/src/sepolgen/refparser.py policycoreutils-2.0.1/sepolgen-1.0.0/src/sepolgen/refparser.py
|
|
|
|
--- nsasepolgen/src/sepolgen/refparser.py 2007-02-07 12:12:15.000000000 -0500
|
2007-02-15 20:57:51 +00:00
|
|
|
+++ policycoreutils-2.0.1/sepolgen-1.0.0/src/sepolgen/refparser.py 2007-02-15 15:16:09.000000000 -0500
|
2007-02-15 20:27:16 +00:00
|
|
|
@@ -691,11 +691,13 @@
|
|
|
|
output.write(msg)
|
|
|
|
|
|
|
|
def parse_file(f, module, spt=None):
|
|
|
|
- fd = open(f)
|
|
|
|
- txt = fd.read()
|
|
|
|
- fd.close()
|
|
|
|
try:
|
|
|
|
+ fd = open(f)
|
|
|
|
+ txt = fd.read()
|
|
|
|
+ fd.close()
|
|
|
|
parse(txt, module, spt)
|
|
|
|
+ except IOError, e:
|
|
|
|
+ return
|
|
|
|
except ValueError, e:
|
|
|
|
raise ValueError("error parsing file %s: %s" % (f, str(e)))
|
|
|
|
|