[omd-commits] OMD Git: omd: mod_pyton: hopefully fix problems in CentosOS 5.6

git version control git at mathias-kettner.de
Sun Jun 19 17:21:46 CEST 2011


Module:   omd
Branch:   master
Commit:   3e502aff923a4b1f93890088042fe13d467be77f
URL:      http://omdistro.org/projects/omd/repository/revisions/3e502aff923a4b1f93890088042fe13d467be77f

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Sun Jun 19 17:21:42 2011 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Sun Jun 19 17:21:42 2011 +0200

mod_pyton: hopefully fix problems in CentosOS 5.6

---

 packages/mod_python/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/packages/mod_python/Makefile b/packages/mod_python/Makefile
index 066ae73..c2c36db 100644
--- a/packages/mod_python/Makefile
+++ b/packages/mod_python/Makefile
@@ -28,8 +28,9 @@ install:
 	
 	mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/python/mod_python
 	PYDIR=$$(find tmp.root -name "*egg*" | sed 's@/mod_python.*@@') ; \
+	if [ -z "$$PYDIR"] ; then PYDIR=$$(find tmp.root/ -name __init__.py | sed 's@/mod_python/__init__.*@@') ; fi ; \
 	install $$PYDIR/mod_python/* $(DESTDIR)$(OMD_ROOT)/lib/python/mod_python ; \
-	install -m 644 $$PYDIR/*egg* $(DESTDIR)$(OMD_ROOT)/lib/python
+	if [ -e $$PYDIR/*egg* ] ; then install -m 644 $$PYDIR/*egg* $(DESTDIR)$(OMD_ROOT)/lib/python ; fi
 	rm -rf tmp.root
 
 skel:



More information about the omd-commits mailing list