Skip to content

Commit

Permalink
never-download got readded
Browse files Browse the repository at this point in the history
  • Loading branch information
gtmanfred committed Sep 5, 2017
1 parent 02867fd commit 3c6ae99
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions salt/modules/virtualenv_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,10 @@ def create(path,
for entry in extra_search_dir:
cmd.append('--extra-search-dir={0}'.format(entry))
if never_download is True:
if virtualenv_version_info >= (1, 10):
if virtualenv_version_info >= (1, 10) and virtualenv_version_info < (14, 0, 0):
log.info(
'The virtualenv \'--never-download\' option has been '
'deprecated in virtualenv(>=1.10), as such, the '
'\'never_download\' option to `virtualenv.create()` has '
'also been deprecated and it\'s not necessary anymore.'
'--never-download was deprecated in 1.10.0, but reimplemented in 14.0.0. '
'If this feature is needed, please install a supported virtualenv version.'
)
else:
cmd.append('--never-download')
Expand Down

0 comments on commit 3c6ae99

Please sign in to comment.