[packages/reviewboard] add default-cache-file-path.patch

glen glen at pld-linux.org
Thu Jan 24 23:57:12 CET 2013


commit f81285cf794822fca0318e04b75c7bc885652eb9
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jan 25 00:56:57 2013 +0200

    add default-cache-file-path.patch

 default-cache-file-path.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
---
diff --git a/default-cache-file-path.patch b/default-cache-file-path.patch
new file mode 100644
index 0000000..5970515
--- /dev/null
+++ b/default-cache-file-path.patch
@@ -0,0 +1,40 @@
+From 6dee48c4e95875ceb6357c3fd93b56dc7ebbc1e0 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh at redhat.com>
+Date: Fri, 17 Jun 2011 15:50:05 -0400
+Subject: [PATCH 1/2] Change default cache file path
+
+FHS requirement
+---
+ contrib/conf/settings_local.py.tmpl | 2 +-
+ reviewboard/cmdline/rbsite.py       | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/conf/settings_local.py.tmpl b/contrib/conf/settings_local.py.tmpl
+index 3807b6f69a7bad307bd07216175e677a85042759..33b43308ffd30753fd422e226720218f2b22a6e0 100644
+--- a/contrib/conf/settings_local.py.tmpl
++++ b/contrib/conf/settings_local.py.tmpl
+@@ -31,7 +31,7 @@ SECRET_KEY = '***********************************************'
+ # In most Installations, memcached is the best option. Development
+ # installations can get away with a file-based or local memory cache.
+ #
+-# CACHE_BACKEND = 'file:///tmp/reviewboard_cache?max_entries=5000'
++# CACHE_BACKEND = 'file:///var/cache/reviewboard/cache?max_entries=5000'
+ # CACHE_BACKEND = 'memcached://localhost:11211//'
+ CACHE_BACKEND = 'locmem:///'
+ 
+diff --git a/reviewboard/cmdline/rbsite.py b/reviewboard/cmdline/rbsite.py
+index c30982a6479248ae1f6f0c366ba2cf332224cedf..32c6c6bbe28eb29b77ae4c1144379a8668a45e55 100755
+--- a/reviewboard/cmdline/rbsite.py
++++ b/reviewboard/cmdline/rbsite.py
+@@ -1627,7 +1627,7 @@ class InstallCommand(Command):
+                        is_visible_func=lambda: site.cache_type == "file")
+ 
+         ui.prompt_input(page, "Cache Directory",
+-                        site.cache_info or "/tmp/reviewboard_cache",
++                        site.cache_info or "/var/cache/reviewboard/cache",
+                         save_obj=site, save_var="cache_info")
+ 
+     def ask_web_server_type(self):
+-- 
+1.8.0.2
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/reviewboard.git/commitdiff/f81285cf794822fca0318e04b75c7bc885652eb9



More information about the pld-cvs-commit mailing list