[packages/reviewboard] one cache dir too much

glen glen at pld-linux.org
Tue Jan 29 23:37:38 CET 2013


commit c8c9a3affdbaa076a7142f9fb9e5be653c7600be
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 30 00:37:28 2013 +0200

    one cache dir too much

 default-cache-file-path.patch | 4 ++--
 reviewboard.spec              | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/reviewboard.spec b/reviewboard.spec
index f3fcdb7..5bbd0bd 100644
--- a/reviewboard.spec
+++ b/reviewboard.spec
@@ -86,7 +86,7 @@ take much of the stress and time out of the code review process.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/var/cache/%{name}/cache
+install -d $RPM_BUILD_ROOT/var/cache/%{name}
 %{__python} setup.py install \
 	--skip-build \
 	--optimize=2 \
@@ -148,7 +148,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/rb-site
 %attr(755,root,root) %{_bindir}/rbssh
 %dir %attr(770,root,http) /var/cache/%{name}
-%dir %attr(770,root,http) /var/cache/%{name}/cache
 %dir %{py_sitescriptdir}/%{name}
 %{py_sitescriptdir}/%{name}/*.py[co]
 %{py_sitescriptdir}/%{name}/nose.cfg
diff --git a/default-cache-file-path.patch b/default-cache-file-path.patch
index 5970515..1404c60 100644
--- a/default-cache-file-path.patch
+++ b/default-cache-file-path.patch
@@ -18,7 +18,7 @@ index 3807b6f69a7bad307bd07216175e677a85042759..33b43308ffd30753fd422e226720218f
  # 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 = 'file:///var/cache/reviewboard?max_entries=5000'
  # CACHE_BACKEND = 'memcached://localhost:11211//'
  CACHE_BACKEND = 'locmem:///'
  
@@ -31,7 +31,7 @@ index c30982a6479248ae1f6f0c366ba2cf332224cedf..32c6c6bbe28eb29b77ae4c1144379a86
  
          ui.prompt_input(page, "Cache Directory",
 -                        site.cache_info or "/tmp/reviewboard_cache",
-+                        site.cache_info or "/var/cache/reviewboard/cache",
++                        site.cache_info or "/var/cache/reviewboard",
                          save_obj=site, save_var="cache_info")
  
      def ask_web_server_type(self):
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list