aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-08-05 01:55:16 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-08-05 01:58:59 -0400
commitdaafd7d31457b018797407d97188a4829839172e (patch)
treeb42e1a7d006c0bb4e15142f793bd45796a1a1ff9 /layman/db_modules/json_db/__init__.py
parentupdate.py: Adds functionality to ensure proper sqlite migration (diff)
downloadlayman-daafd7d31457b018797407d97188a4829839172e.tar.gz
layman-daafd7d31457b018797407d97188a4829839172e.tar.bz2
layman-daafd7d31457b018797407d97188a4829839172e.zip
Adds remove function for overlay removal from databases
sqlite_db.py: Also changes the way in which feeds are gathered in read_db(), this shows the nature of feeds being an unrequired attribute of the overlay.
Diffstat (limited to 'layman/db_modules/json_db/__init__.py')
-rw-r--r--layman/db_modules/json_db/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/layman/db_modules/json_db/__init__.py b/layman/db_modules/json_db/__init__.py
index 1502b9d..ac4daa7 100644
--- a/layman/db_modules/json_db/__init__.py
+++ b/layman/db_modules/json_db/__init__.py
@@ -13,10 +13,11 @@ module_spec = {
'name': 'json_db',
'class': 'DBHandler',
'description': __doc__,
- 'functions': ['add_new', 'read_db', 'write'],
+ 'functions': ['add_new', 'read_db', 'remove', 'write'],
'func_desc': {
'add_new': 'Adds overlay(s) from provided database text',
'read_db': 'Reads the list of overlays from database file',
+ 'remove' : 'Removes overlay from installed overlays list',
'write' : 'Writes the list of overlays to database file',
},
}