Commit 4ec4bb50 authored by Lucas Moura's avatar Lucas Moura

Remove unnecessary patch on initializer.py

parent a7ec0d48
......@@ -2,7 +2,6 @@ apprecommender (0.7-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
* Add postrm script for package purge
......
update_init.patch
set_install_path.patch
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 <lucas.moura128@gmail.com>
Last-updated: 2016-08-04
Forwarded: not-needed
Bug: not-needed
--- a/apprecommender/initialize.py
+++ b/apprecommender/initialize.py
@@ -105,9 +105,10 @@ class Initialize:
try:
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)
os.makedirs(self.config.filters_dir)
except OSError:
raise
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