Merge pull request #45481 from twangboy/fix_aptpkg

Fix if statement in __init__()
This commit is contained in:
Nicole Thomas 2018-01-17 10:29:45 -05:00 committed by GitHub
commit 9c4fb42e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ def __init__(opts):
a few env variables to keep apt happy and
non-interactive.
'''
if __virtual__():
if __virtual__() == __virtualname__:
# Export these puppies so they persist
os.environ.update(DPKG_ENV_VARS)