summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/clearcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/clearcase.py')
-rw-r--r--bitbake/lib/bb/fetch2/clearcase.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/clearcase.py b/bitbake/lib/bb/fetch2/clearcase.py
index 36beab6a5b..3a6573d0b2 100644
--- a/bitbake/lib/bb/fetch2/clearcase.py
+++ b/bitbake/lib/bb/fetch2/clearcase.py
@@ -69,7 +69,6 @@ from bb.fetch2 import FetchMethod
69from bb.fetch2 import FetchError 69from bb.fetch2 import FetchError
70from bb.fetch2 import runfetchcmd 70from bb.fetch2 import runfetchcmd
71from bb.fetch2 import logger 71from bb.fetch2 import logger
72from distutils import spawn
73 72
74class ClearCase(FetchMethod): 73class ClearCase(FetchMethod):
75 """Class to fetch urls via 'clearcase'""" 74 """Class to fetch urls via 'clearcase'"""
@@ -107,7 +106,7 @@ class ClearCase(FetchMethod):
107 else: 106 else:
108 ud.module = "" 107 ud.module = ""
109 108
110 ud.basecmd = d.getVar("FETCHCMD_ccrc") or spawn.find_executable("cleartool") or spawn.find_executable("rcleartool") 109 ud.basecmd = d.getVar("FETCHCMD_ccrc") or "/usr/bin/env cleartool || rcleartool"
111 110
112 if d.getVar("SRCREV") == "INVALID": 111 if d.getVar("SRCREV") == "INVALID":
113 raise FetchError("Set a valid SRCREV for the clearcase fetcher in your recipe, e.g. SRCREV = \"/main/LATEST\" or any other label of your choice.") 112 raise FetchError("Set a valid SRCREV for the clearcase fetcher in your recipe, e.g. SRCREV = \"/main/LATEST\" or any other label of your choice.")