# Distributed under the GPL v2
# $Id$
+ 02 Sep 2009; Chris Gianelloni <wolf31o2@wolf31o2.org> catalyst:
+ Clean up a few extraneous spaces, line wrap a comment, and add Id.
+
02 Sep 2009; Chris Gianelloni <wolf31o2@wolf31o2.org> AUTHORS,
+.gitattributes, README, TODO:
Adding .gitattributes and adding an Id variable to AUTHORS, ChangeLog,
# Maintained in full by:
# Andrew Gaffney <agaffney@gentoo.org>
# Chris Gianelloni <wolf31o2@wolf31o2.org>
+# $Id$
import os, sys, imp, string, getopt
import pdb
def version():
print "Catalyst, version "+__version__
print "Copyright 2003-2008 Gentoo Foundation"
- print "Copyright 2008 various authors"
+ print "Copyright 2008-2009 various authors"
print "Distributed under the GNU General Public License version 2.1\n"
def parse_config(myconfig):
fh=open(conf_values["sharedir"]+"/modules/"+x+".py")
module=imp.load_module(x,fh,"modules/"+x+".py",(".py","r",imp.PY_SOURCE))
fh.close()
-
+
except IOError:
raise CatalystError,"Can't find "+x+".py plugin in "+\
conf_values.settings["sharedir"]+"/modules/"
module=imp.load_module(x,fh,"modules/"+x+".py",(".py","r",imp.PY_SOURCE))
module.register(targetmap)
fh.close()
-
+
except IOError:
raise CatalystError,"Can't find "+x+".py plugin in "+\
conf_values.settings["sharedir"]+"/modules/"
sys.path.append(conf_values["sharedir"]+"/modules")
from catalyst_support import *
- # Start checking that digests are valid now that the hash_map was imported from catalyst_support
+ # Start checking that digests are valid now that the hash_map was imported
+ # from catalyst_support
if conf_values.has_key("digests"):
for i in conf_values["digests"].split():
if not hash_map.has_key(i):
if conf_values.has_key("hash_function"):
if not hash_map.has_key(conf_values["hash_function"]):
print
- print conf_values["hash_function"]+" is not a valid hash_function entry"
+ print conf_values["hash_function"]+\
+ " is not a valid hash_function entry"
print "Valid hash_function entries:"
print hash_map.keys()
print