aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layman/constants.py')
-rw-r--r--layman/constants.py27
1 files 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']