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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 23 09:02:31 CET 2011


Revision: 13063
          http://gar.svn.sourceforge.net/gar/?rev=13063&view=rev
Author:   wahwah
Date:     2011-01-23 08:02:30 +0000 (Sun, 23 Jan 2011)

Log Message:
-----------
pkgdb: Additional config file for relmgr

For the purposes of web serving processes.  Web scripts are running as
a designated user, but without access to the home directory.  Therefore, we're
creating a specific host-wide file for release managers.

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

Modified: csw/mgar/gar/v2/lib/python/configuration.py
===================================================================
--- csw/mgar/gar/v2/lib/python/configuration.py	2011-01-23 08:02:02 UTC (rev 13062)
+++ csw/mgar/gar/v2/lib/python/configuration.py	2011-01-23 08:02:30 UTC (rev 13063)
@@ -11,6 +11,7 @@
 WS_RE = re.compile(r"\s+")
 
 CHECKPKG_CONFIG_FILENAME = "checkpkg.ini"
+CHECKPKG_RELMGR_CONFIG_FILENAME = "checkpkg_relmgr.ini"
 CHECKPKG_AUTO_CONFIG_FILENAME = "checkpkg_auto.ini"
 CHECKPKG_DEFAULTS_FILENAME = "checkpkg_defaults.ini"
 CHECKPKG_DIR = "%(HOME)s/.checkpkg"
@@ -21,6 +22,8 @@
                                      CHECKPKG_AUTO_CONFIG_FILENAME)
 SITE_CONFIG_FILE = os.path.join(CHECKPKG_SITE_CONFIG_DIR,
                                 CHECKPKG_CONFIG_FILENAME)
+SITE_CONFIG_RELMGR_FILE = os.path.join(CHECKPKG_SITE_CONFIG_DIR,
+                                       CHECKPKG_RELMGR_CONFIG_FILENAME)
 DEFAULTS_FILE = os.path.join(CHECKPKG_SRC_BASEDIR, CHECKPKG_DEFAULTS_FILENAME)
 
 CONFIGURATION_FILE_LOCATIONS = [
@@ -36,10 +39,11 @@
     # file, it's expected that checkpkg will connect to the shared database.
     # To achieve this, the site-global config has to have priority over the
     # autogenerated file.
-    (DEFAULTS_FILE,         True),
-    (AUTO_CONFIG_FILE_TMPL, False),
-    (SITE_CONFIG_FILE,      False),
-    (USER_CONFIG_FILE_TMPL, False)
+    (DEFAULTS_FILE,                True),
+    (AUTO_CONFIG_FILE_TMPL,        False),
+    (SITE_CONFIG_FILE,             False),
+    (SITE_CONFIG_RELMGR_FILE,      False),
+    (USER_CONFIG_FILE_TMPL,        False)
 ]
 
 


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