Commit d116d527 authored by Lucas Moura's avatar Lucas Moura

Add patch to change database install location

parent 924468cc
apprecommender (0.6.4-1) UNRELEASED; urgency=medium
* New upstream release (Closes: #831217)
* Add patch to change database install location
-- Lucas Albuquerque Medeiros de Moura <lucas.moura128@gmail.com> Tue, 02 Aug 2016 00:03:50 -0300
......
set_install_path.patch
Description: Set install path
Change install path from the HOME dir to /var/lib/apprecommender
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128@gmail.com>
Last-updated: 2016-08-03
Forwarded: not-needed
Bug: not-needed
--- a/apprecommender/config.py
+++ b/apprecommender/config.py
@@ -53,7 +53,7 @@ class Config(Singleton):
if not hasattr(self, 'initialized'):
# data_source options
self.base_dir = os.environ.get(
- 'APPREC_DATA', '~/.apprecommender')
+ 'APPREC_DATA', '/var/lib/apprecommender')
self.base_dir = os.path.expanduser(self.base_dir)
self.output = os.path.join(self.home_dir, 'apprec.log')
self.user_data_dir = os.path.join(self.base_dir, "user_data/")
@@ -129,7 +129,7 @@ class Config(Singleton):
self.debug = int(self.read_option('general', 'debug'))
self.debug = int(self.read_option('general', 'verbose'))
self.base_dir = os.environ.get(
- 'APPREC_DATA', '~/.apprecommender')
+ 'APPREC_DATA', '/var/lib/apprecommender')
self.base_dir = os.path.expanduser(self.base_dir)
self.output = os.path.join(
self.home_dir, self.read_option('data_sources',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment