[packages/pootle/dev-2.7] use /var/lib/pootle/dbs for databases

glen glen at pld-linux.org
Sun May 8 10:23:25 CEST 2016


commit c4be098bc2452fc5babc72ed85a048502a93bef9
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 8 11:22:33 2016 +0300

    use /var/lib/pootle/dbs for databases

 pootle.spec    |  7 ++++---
 settings.patch | 11 +++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/pootle.spec b/pootle.spec
index 7fac160..a86f5af 100644
--- a/pootle.spec
+++ b/pootle.spec
@@ -4,7 +4,7 @@
 Summary:	Localization and translation management web application
 Name:		pootle
 Version:	2.7.3
-Release:	0.4
+Release:	0.5
 License:	GPL v2
 Group:		Development/Tools
 Source0:	https://github.com/translate/pootle/releases/download/%{version}/Pootle-%{version}.tar.bz2
@@ -62,13 +62,14 @@ It's features include::
 rm pootle/settings/91-travis.conf
 
 rm pootle/log/README
+rm pootle/dbs/README
 
 %build
 %py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/%{name},%{_sharedstatedir}/%{name}/po/.tmp,/var/log/%{name},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/%{name},%{_sharedstatedir}/%{name}/{dbs,po/.tmp},/var/log/%{name},%{_sysconfdir}}
 
 %py_install
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
@@ -182,7 +183,7 @@ rm -rf $RPM_BUILD_ROOT
 %{py_sitescriptdir}/Pootle-%{version}-py*.egg-info
 
 %dir %{_sharedstatedir}/pootle
-#%dir %attr(770,root,http) %{_sharedstatedir}/pootle/dbs
+%dir %attr(770,root,http) %{_sharedstatedir}/pootle/dbs
 %dir %attr(770,root,http) %{_sharedstatedir}/pootle/po
 # setup a tempdir inside the PODIRECTORY heirarchy, this way we have
 # reasonable guarantee that temp files will be created on the same
diff --git a/settings.patch b/settings.patch
index b15c410..d5c9962 100644
--- a/settings.patch
+++ b/settings.patch
@@ -91,3 +91,14 @@
  
  # Useful references:
  #
+--- Pootle-2.7.3/pootle/settings/20-backends.conf~	2016-04-25 17:04:49.000000000 +0300
++++ Pootle-2.7.3/pootle/settings/20-backends.conf	2016-05-08 11:13:33.265043075 +0300
+@@ -8,7 +8,7 @@
+ DATABASES = {
+     'default': {
+         'ENGINE': 'transaction_hooks.backends.sqlite3',
+-        'NAME': working_path('dbs/pootle.db'),
++        'NAME': '/var/lib/pootle/dbs/pootle.db',
+         'USER': '',
+         'PASSWORD': '',
+         'HOST': '',
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pootle.git/commitdiff/c4be098bc2452fc5babc72ed85a048502a93bef9



More information about the pld-cvs-commit mailing list