From 291bf4492abaff695bce73aebfd426a12c251358 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 9 Oct 2008 21:48:46 -1000 Subject: [PATCH] More fixes for importing Lorax. --- src/bin/lorax | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/lorax b/src/bin/lorax index 153872c4..bfdcf887 100755 --- a/src/bin/lorax +++ b/src/bin/lorax @@ -25,7 +25,7 @@ import getopt import os import sys -import pylorax +from pylorax import Lorax def usage(prog): print("Usage: %s -v VERSION -p PRODUCT -r RELEASE -o PATH REPO\n" % (prog,)) @@ -91,7 +91,8 @@ if __name__ == "__main__": elif o in ('-C', '--cleanup'): cleanup = True elif o in ('-V'): - pylorax.show_version(prog) + # XXX: need to fix this + #pylorax.show_version(prog) sys.exit(0) if version is None or product is None or release is None or output is None: @@ -102,7 +103,7 @@ if __name__ == "__main__": sys.stderr.write("ERROR: Missing repo to use for image generation.\n") sys.exit(1) - lorax = pylorax.Lorax(repos=args, output=output, mirrorlist=mirrorlist) + lorax = Lorax(repos=args, output=output, mirrorlist=mirrorlist) if confdir is not None: lorax.conf['confdir'] = confdir