Skip to content

Commit 7ae9495

Browse files
author
Jarl Stefansson
committed
Fix grep for detecting if virtenv needs rebuild
1 parent d8a72b2 commit 7ae9495

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

manifests/virtualenv.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
default => "-i ${index}",
120120
}
121121

122-
# Python 2.6 and older does not support setuptools/distribute > 0.8 which
122+
# Python 2.6 and older does not support setuptools/distribute > 0.8 which
123123
# is required for pip wheel support, pip therefor requires --no-use-wheel flag
124124
# if the # pip version is more recent than 1.4.1 but using an old python or
125125
# setuputils/distribute version
@@ -132,7 +132,7 @@
132132
path => $path,
133133
cwd => "/tmp",
134134
environment => $environment,
135-
unless => "grep '^[ \t]*VIRTUAL_ENV=[\'\"]*${venv_dir}[\"\']*[ \t]*$' ${venv_dir}/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
135+
unless => "grep '^[\\t ]*VIRTUAL_ENV=[\\\\'\\\"]*${venv_dir}[\\\"\\\\'][\\t ]*$' ${venv_dir}/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
136136
}
137137

138138
if $requirements {

0 commit comments

Comments
 (0)