From 46846091abef6fb8339ad640c1baa25c63e85bc9 Mon Sep 17 00:00:00 2001 From: Devan Franchini Date: Fri, 17 Jul 2015 12:12:26 -0400 Subject: constants.py: Adds constant DB_TYPES for supported db checking --- layman/constants.py | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'layman') 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'] -- cgit v1.2.3-18-g5258