commit: 46846091abef6fb8339ad640c1baa25c63e85bc9
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 17 16:12:26 2015 +0000
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri Jul 17 16:18:04 2015 +0000
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=46846091
constants.py: Adds constant DB_TYPES for supported db checking
layman/constants.py | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/layman/constants.py b/layman/constants.py
index a39071f..f8292f7 100644
--- a/layman/constants.py
+++ b/layman/constants.py
@@ -1,8 +1,8 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-#################################################################################
+################################################################################
# LAYMAN CONSTANTS
-#################################################################################
+################################################################################
# File: constants.py
#
# Handles layman actions via the command line interface.
@@ -26,11 +26,11 @@ __version__ = "$Id: constants.py 2011-01-16 23:52 PST Brian
Dolbec$"
-#################################################################################
+################################################################################
##
## Color codes (taken from portage)
##
-#################################################################################
+################################################################################
esc_seq = '\x1b['
@@ -57,31 +57,38 @@ DEBUG_VERBOSITY = 2
FAILURE = 1
SUCCEED = 0
-#################################################################################
+################################################################################
##
## Overlay components
##
-#################################################################################
+################################################################################
COMPONENT_DEFAULTS = ['name', 'description', 'owner', 'type', 'source']
POSSIBLE_COMPONENTS = ['name', 'description', 'homepage', 'owner', 'quality',
'priority', 'source', 'branch', 'irc', 'feed']
-###############################################################################
+################################################################################
##
## Archive overlay possible file extensions
##
-###############################################################################
+################################################################################
FILE_EXTENSIONS = {'Squashfs': ('.squashfs', '.squash', '.sqfs', '.sfs'),
'Tar': ('bz2', 'gz', 'lzma', 'xz', 'Z', 'tgz', 'tbz', 'taz',
'tlz', 'txz'),
}
-###################################################################################
+################################################################################
##
## Overlay types mountable by script
##
-####################################################################################
+################################################################################
MOUNT_TYPES = ['Squashfs']
+
+################################################################################
+##
+## Supported database types
+##
+################################################################################
+DB_TYPES = ['json', 'xml']