aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2015-07-17 12:12:26 -0400
committerDevan Franchini <twitch153@gentoo.org>2015-07-17 12:18:04 -0400
commit46846091abef6fb8339ad640c1baa25c63e85bc9 (patch)
treea055e335735ac89f616774dcf54932c980cf71a4
parentversion.py: Changes version to 2.4.0-git (diff)
downloadlayman-46846091abef6fb8339ad640c1baa25c63e85bc9.tar.gz
layman-46846091abef6fb8339ad640c1baa25c63e85bc9.tar.bz2
layman-46846091abef6fb8339ad640c1baa25c63e85bc9.zip
constants.py: Adds constant DB_TYPES for supported db checking
-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']