diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 4b42b17145..ed65814be2 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -386,15 +386,15 @@ def check_tar_version(sanity_data): | |||
386 | return "Your version of tar is older than 1.24 and has bugs which will break builds. Please install a newer version of tar.\n" | 386 | return "Your version of tar is older than 1.24 and has bugs which will break builds. Please install a newer version of tar.\n" |
387 | return None | 387 | return None |
388 | 388 | ||
389 | # We use git parameters and functionality only found in 1.7.5 or later | 389 | # We use git parameters and functionality only found in 1.7.8 or later |
390 | def check_git_version(sanity_data): | 390 | def check_git_version(sanity_data): |
391 | from distutils.version import LooseVersion | 391 | from distutils.version import LooseVersion |
392 | status, result = oe.utils.getstatusoutput("git --version 2> /dev/null") | 392 | status, result = oe.utils.getstatusoutput("git --version 2> /dev/null") |
393 | if status != 0: | 393 | if status != 0: |
394 | return "Unable to execute git --version, exit code %s\n" % status | 394 | return "Unable to execute git --version, exit code %s\n" % status |
395 | version = result.split()[2] | 395 | version = result.split()[2] |
396 | if LooseVersion(version) < LooseVersion("1.7.5"): | 396 | if LooseVersion(version) < LooseVersion("1.7.8"): |
397 | return "Your version of git is older than 1.7.5 and has bugs which will break builds. Please install a newer version of git.\n" | 397 | return "Your version of git is older than 1.7.8 and has bugs which will break builds. Please install a newer version of git.\n" |
398 | return None | 398 | return None |
399 | 399 | ||
400 | # Check the required perl modules which may not be installed by default | 400 | # Check the required perl modules which may not be installed by default |