summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-03-24 10:31:06 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-25 17:25:50 +0000
commit80a52e7ad64d0870db18cddeda9588dc5b723f52 (patch)
tree28d86660e35561f7db577e142bb68361e466eed4
parentb5f8ce02b73f3b9e3ac95808c8369d85a88dfa7a (diff)
downloadopenembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.gz
openembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.bz2
openembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.tar.xz
openembedded-core-80a52e7ad64d0870db18cddeda9588dc5b723f52.zip
bb.which: fix broken direction/reverse argument
(Bitbake rev: 4725d83f532cad96168aa9affdedb33b6fc897b7) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index c564d34c7..1bb9e9472 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -611,7 +611,7 @@ def which(path, item, direction = 0):
if direction != 0:
paths.reverse()
- for p in (path or "").split(':'):
+ for p in paths:
next = os.path.join(p, item)
if os.path.exists(next):
return next
> 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264