Related: https://pagure.io/koji/issue/584
$ git diff master...|flake8 --diff ./hub/kojihub.py:5326:34: F821 undefined name 'olddir'
check_build_dir() has no test coverage, perhaps we should fix that while we're here
rebased onto 1f218202bb5afdada05dec4f8fff52952131531a
Commit c88c958f fixes this pull-request
Pull-Request has been merged by mikem@redhat.com
Related: https://pagure.io/koji/issue/584