summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/clearcase.py3
-rw-r--r--bitbake/lib/bb/fetch2/npm.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/clearcase.py b/bitbake/lib/bb/fetch2/clearcase.py
index 70e280a8dd..41cd46fe25 100644
--- a/bitbake/lib/bb/fetch2/clearcase.py
+++ b/bitbake/lib/bb/fetch2/clearcase.py
@@ -70,7 +70,6 @@ from bb.fetch2 import FetchMethod
70from bb.fetch2 import FetchError 70from bb.fetch2 import FetchError
71from bb.fetch2 import runfetchcmd 71from bb.fetch2 import runfetchcmd
72from bb.fetch2 import logger 72from bb.fetch2 import logger
73from distutils import spawn
74 73
75class ClearCase(FetchMethod): 74class ClearCase(FetchMethod):
76 """Class to fetch urls via 'clearcase'""" 75 """Class to fetch urls via 'clearcase'"""
@@ -108,7 +107,7 @@ class ClearCase(FetchMethod):
108 else: 107 else:
109 ud.module = "" 108 ud.module = ""
110 109
111 ud.basecmd = d.getVar("FETCHCMD_ccrc", True) or spawn.find_executable("cleartool") or spawn.find_executable("rcleartool") 110 ud.basecmd = d.getVar("FETCHCMD_ccrc", True) or "/usr/bin/env cleartool || rcleartool"
112 111
113 if data.getVar("SRCREV", d, True) == "INVALID": 112 if data.getVar("SRCREV", d, True) == "INVALID":
114 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.") 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.")
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index 699ae72e05..7ccaba9873 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -33,7 +33,6 @@ from bb.fetch2 import runfetchcmd
33from bb.fetch2 import logger 33from bb.fetch2 import logger
34from bb.fetch2 import UnpackError 34from bb.fetch2 import UnpackError
35from bb.fetch2 import ParameterError 35from bb.fetch2 import ParameterError
36from distutils import spawn
37 36
38def subprocess_setup(): 37def subprocess_setup():
39 # Python installs a SIGPIPE handler by default. This is usually not what 38 # Python installs a SIGPIPE handler by default. This is usually not what