summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2011-02-10 17:23:17 +0100
committerJesse Keating <jkeating@redhat.com>2011-02-09 20:36:47 -0700
commit0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469 (patch)
treee5908b75af01107b7d172df46b88235e87acf23e
parent682b73e3feb68802a9f887e2c6dac7edbb9482f7 (diff)
downloadfedora-packager-0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469.zip
fedora-packager-0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469.tar.gz
fedora-packager-0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469.tar.xz
Move some module imports to command runtime
Move module imports of the fedora_cert, koji, and pyfedpkg modules to the actual command runtime. This gets rid of the requirement to have them (and their respective imported modules) installed at build time for generating the man page.
-rwxr-xr-xsrc/fedpkg.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 91a7b5d..594be84 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -11,13 +11,10 @@
# the full text of the license.
import argparse
-import pyfedpkg
-import fedora_cert
import os
import sys
import getpass
import logging
-import koji
import xmlrpclib
import time
import random
@@ -1450,7 +1447,12 @@ if __name__ == '__main__':
# to stderr. Normal operation will show anything INFO and above.
# Quiet hides INFO, while Verbose exposes DEBUG. In all cases WARN or
# higher are exposed (via stderr).
+
+ import fedora_cert
+ import koji
+ import pyfedpkg
log = pyfedpkg.log
+
if args.v:
log.setLevel(logging.DEBUG)
elif args.q: