# Copyright 2002-2009 Gentoo Foundation; 2008-2009 Various authors (see AUTHORS)
# Distributed under the GPL v2
+ 11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
+ Rename version() to show_version()
+
11 Jan 2009; Andrew Gaffney <agaffney@gentoo.org> catalyst:
Remove import_modules()
print "Using the specfile option (-f, --file) to build a stage target:"
print "catalyst -f stage1-specfile.spec"
-def version():
+def show_version():
print "Catalyst, version "+__version__
print "Copyright 2003-2008 Gentoo Foundation"
print "Copyright 2008 various authors"
sys.exit(1)
if __name__ == "__main__":
- targetmap={}
- version()
+ show_version()
if os.getuid() != 0:
# catalyst cannot be run as a normal user due to chroots, mounts, etc
print "!!! catalyst: This script requires root privileges to operate"