Commit a28bd997 authored by Lucas Moura's avatar Lucas Moura

Add patch to --init to remove only necessary dirs

parent 29210334
......@@ -2,6 +2,7 @@ apprecommender (0.6.4-1) UNRELEASED; urgency=medium
* New upstream release (Closes: #831217)
* Add patch to change database install location
* Add patch to update which dirs the --init command removes
* Add crontab to keep updating apprecommender database daily
* Add postinst script to set apprecommender database
* debian/tests: update scrips to run with apprec user
Description: Update init command
Since apprecommender database files now belongs to the apprec user and
these files are stored in /var/lib/apprecommender, the --init command
should not remove the /var/lib/apprecommender dir, but just its subdirectories
Author: Lucas Albuquerque Medeiros de Moura <>
Last-updated: 2016-08-04
Forwarded: not-needed
Bug: not-needed
--- a/apprecommender/
+++ b/apprecommender/
@@ -105,9 +105,10 @@ class Initialize:
if os.path.exists(self.config.base_dir):
- shutil.rmtree(self.config.base_dir)
+ shutil.rmtree(self.config.user_data_dir)
+ shutil.rmtree(self.config.axi_desktopapps)
+ shutil.rmtree(self.config.filters_dir)
- os.makedirs(self.config.base_dir)
except OSError:
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