[csw-devel] SF.net SVN: gar:[13066] csw/mgar/gar/v2/lib/python/common_constants.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 23 12:43:09 CET 2011


Revision: 13066
          http://gar.svn.sourceforge.net/gar/?rev=13066&view=rev
Author:   wahwah
Date:     2011-01-23 11:43:09 +0000 (Sun, 23 Jan 2011)

Log Message:
-----------
pkgdb: Common constans should be immutable

Changing some data structures from lists to tuples, which are immutable.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/common_constants.py

Modified: csw/mgar/gar/v2/lib/python/common_constants.py
===================================================================
--- csw/mgar/gar/v2/lib/python/common_constants.py	2011-01-23 08:03:51 UTC (rev 13065)
+++ csw/mgar/gar/v2/lib/python/common_constants.py	2011-01-23 11:43:09 UTC (rev 13066)
@@ -3,17 +3,17 @@
 ARCH_ALL = "all"
 PHYSICAL_ARCHITECTURES = [ARCH_SPARC, ARCH_i386]
 ARCHITECTURES = PHYSICAL_ARCHITECTURES + [ARCH_ALL]
-OS_RELS = [
+OS_RELS = (
     u"SunOS5.8",
     u"SunOS5.9",
     u"SunOS5.10",
     u"SunOS5.11",
-]
+)
 
 SYSTEM_SYMLINKS = (
-    ("/opt/csw/bdb4",     ["/opt/csw/bdb42"]),
-    ("/64",               ["/amd64", "/sparcv9"]),
-    ("/opt/csw/lib/i386", ["/opt/csw/lib"]),
+    ("/opt/csw/bdb4",     ("/opt/csw/bdb42",)),
+    ("/64",               ("/amd64", "/sparcv9")),
+    ("/opt/csw/lib/i386", ("/opt/csw/lib",)),
 )
 
 DEFAULT_INSTALL_CONTENTS_FILE = "/var/sadm/install/contents"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list