aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-30 12:50:34 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-30 12:50:34 +0000
commitf5879865686e7ec9c9e9ef8f181f03c9f4fa2186 (patch)
tree926f21a759a067b7d1267fcc9597446e97284344 /pym/portage/const.py
parentDeprecate the first parameter of the portdbapi constructor since it is always (diff)
downloadportage-f5879865686e7ec9c9e9ef8f181f03c9f4fa2186.tar.gz
portage-f5879865686e7ec9c9e9ef8f181f03c9f4fa2186.tar.bz2
portage-f5879865686e7ec9c9e9ef8f181f03c9f4fa2186.zip
Use tuples instead of lists for immutability.
svn path=/main/trunk/; revision=15282
Diffstat (limited to 'pym/portage/const.py')
-rw-r--r--pym/portage/const.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pym/portage/const.py b/pym/portage/const.py
index 14596441c..8d06bb31a 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -72,26 +72,26 @@ REPO_NAME_LOC = "profiles" + "/" + REPO_NAME_FILE
PORTAGE_PACKAGE_ATOM = "sys-apps/portage"
-INCREMENTALS = ["USE", "USE_EXPAND", "USE_EXPAND_HIDDEN",
+INCREMENTALS = ("USE", "USE_EXPAND", "USE_EXPAND_HIDDEN",
"FEATURES", "ACCEPT_KEYWORDS",
"CONFIG_PROTECT_MASK", "CONFIG_PROTECT",
"PRELINK_PATH", "PRELINK_PATH_MASK",
- "PROFILE_ONLY_VARIABLES"]
-EBUILD_PHASES = ["setup", "unpack", "prepare", "configure",
+ "PROFILE_ONLY_VARIABLES")
+EBUILD_PHASES = ("setup", "unpack", "prepare", "configure",
"compile", "test", "install",
"package", "preinst", "postinst","prerm", "postrm",
- "nofetch", "config", "info", "other"]
+ "nofetch", "config", "info", "other")
EAPI = 3
HASHING_BLOCKSIZE = 32768
-MANIFEST1_HASH_FUNCTIONS = ["MD5", "SHA256", "RMD160"]
-MANIFEST2_HASH_FUNCTIONS = ["SHA1", "SHA256", "RMD160"]
+MANIFEST1_HASH_FUNCTIONS = ("MD5", "SHA256", "RMD160")
+MANIFEST2_HASH_FUNCTIONS = ("SHA1", "SHA256", "RMD160")
MANIFEST1_REQUIRED_HASH = "MD5"
MANIFEST2_REQUIRED_HASH = "SHA1"
-MANIFEST2_IDENTIFIERS = ["AUX", "MISC", "DIST", "EBUILD"]
+MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD")
# ===========================================================================
# END OF CONSTANTS -- END OF CONSTANTS -- END OF CONSTANTS -- END OF CONSTANT
# ===========================================================================