[Pkg-zenoss-commits] r279 - in /trunk/packages/zenoss/debian/patches: 00list zendmd_history_location.dpatch
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Mon Aug 13 15:43:53 UTC 2007
Author: zack
Date: Mon Aug 13 15:43:53 2007
New Revision: 279
URL: http://svn.debian.org/wsvn/pkg-zenoss/?sc=1&rev=279
Log:
patch zendmd so that it save the history file in a writable directory
Added:
trunk/packages/zenoss/debian/patches/zendmd_history_location.dpatch (with props)
Modified:
trunk/packages/zenoss/debian/patches/00list
Modified: trunk/packages/zenoss/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/zenoss/debian/patches/00list?rev=279&op=diff
==============================================================================
--- trunk/packages/zenoss/debian/patches/00list (original)
+++ trunk/packages/zenoss/debian/patches/00list Mon Aug 13 15:43:53 2007
@@ -2,6 +2,7 @@
testgen-distutils
drop_triggers_before_db_creation
bypass_eula
+zendmd_history_location
ZENHOME00-shellscripts
ZENHOME01-zenfunctions-pythonpath
ZENHOME02-add-missing-zenfunction-source
Added: trunk/packages/zenoss/debian/patches/zendmd_history_location.dpatch
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/zenoss/debian/patches/zendmd_history_location.dpatch?rev=279&op=file
==============================================================================
--- trunk/packages/zenoss/debian/patches/zendmd_history_location.dpatch (added)
+++ trunk/packages/zenoss/debian/patches/zendmd_history_location.dpatch Mon Aug 13 15:43:53 2007
@@ -1,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## zendmd_history_location.dpatch by Stefano Zacchiroli <zack at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: save .pyhistory in a subdir of the zenoss user home which is writable to
+## DP: the user
+
+ at DPATCH@
+diff -urNad zenoss~/Products/ZenModel/zendmd.py zenoss/Products/ZenModel/zendmd.py
+--- zenoss~/Products/ZenModel/zendmd.py 2007-06-26 18:11:51.000000000 +0200
++++ zenoss/Products/ZenModel/zendmd.py 2007-08-13 17:36:41.000000000 +0200
+@@ -35,7 +35,7 @@
+ # original code is available at http://pastebin.adytum.us/40 though
+ # the original has proven difficult to locate.
+ zenHome = os.getenv('ZENHOME')
+- historyPath = os.path.join(zenHome, '.pyhistory')
++ historyPath = os.path.join(zenHome, 'var', '.pyhistory')
+ def save_history(historyPath=historyPath):
+ import readline
+ readline.write_history_file(historyPath)
Propchange: trunk/packages/zenoss/debian/patches/zendmd_history_location.dpatch
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-zenoss-commits
mailing list