diff options
author | Jesse Keating <jkeating@redhat.com> | 2011-02-09 20:58:13 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2011-02-09 20:58:13 -0700 |
commit | de06adc081833c52e3d5a6df58a20a0e9eb2cd71 (patch) | |
tree | 5bce26496ddad47dd37ef092cd113a3b8551b61b /src/fedpkg.py | |
parent | 0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469 (diff) | |
download | fedora-packager-de06adc081833c52e3d5a6df58a20a0e9eb2cd71.tar.gz fedora-packager-de06adc081833c52e3d5a6df58a20a0e9eb2cd71.tar.xz fedora-packager-de06adc081833c52e3d5a6df58a20a0e9eb2cd71.zip |
rearrnage import and drop hints about why
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-x | src/fedpkg.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 594be84..cb289a6 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -23,6 +23,9 @@ import re import hashlib import textwrap +# See/put non-standard python imports down in __main__. This lets us +# generate the man page without needing extra stuff at build time. + # Define packages which belong to specific secondary arches # This is ugly and should go away. A better way to do this is to have a list # of secondary arches, and then check the spec file for ExclusiveArch that @@ -1442,15 +1445,16 @@ if __name__ == '__main__': print('Could not get current path, have you deleted it?') sys.exit(1) + # Import non-standard python stuff here + import fedora_cert + import koji + import pyfedpkg + # setup the logger -- This logger will take things of INFO or DEBUG and # log it to stdout. Anything above that (WARN, ERROR, CRITICAL) will go # 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: |