summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-05-18 02:04:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-19 11:58:45 +0100
commit3371a7bc96081f88b796209c631f5c80c8b45b27 (patch)
tree7ac60c3c8247e64c844d333ebb588358f32d1fe6 /bitbake/lib/bb
parentaefc80c02ed6d4de5768723d86ce80520387e1d3 (diff)
downloadpoky-3371a7bc96081f88b796209c631f5c80c8b45b27.tar.gz
bitbake: fetch2/hg.py: add clean function
Fixed when bitbake vim -ccleanall: File: '/path/to/bitbake/lib/bb/fetch2/__init__.py', lineno: 1462, function: clean 1458: def clean(self, urldata, d): 1459: """ 1460: Clean any existing full or partial download 1461: """ *** 1462: bb.utils.remove(urldata.localpath) 1463: 1464: def try_premirror(self, urldata, d): 1465: """ 1466: Should premirrors be used? File: '/path/to/bitbake/lib/bb/utils.py', lineno: 633, function: remove 0629: subprocess.call(['rm', '-rf'] + glob.glob(path)) 0630: return 0631: for name in glob.glob(path): 0632: try: *** 0633: os.unlink(name) 0634: except OSError as exc: 0635: if exc.errno != errno.ENOENT: 0636: raise Exception: OSError: [Errno 21] Is a directory: '/path/to/downloads/hg/vim.googlecode.com/hg/vim' (Bitbake rev: 02763306662e15a4750395e5eab64ba98d1f9939) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/hg.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 6547cca73e..3c80725f86 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -163,6 +163,11 @@ class Hg(FetchMethod):
163 logger.debug(1, "Running %s", updatecmd) 163 logger.debug(1, "Running %s", updatecmd)
164 runfetchcmd(updatecmd, d) 164 runfetchcmd(updatecmd, d)
165 165
166 def clean(self, ud, d):
167 """ Clean the hg dir """
168
169 bb.utils.remove(ud.localpath, True)
170
166 def supports_srcrev(self): 171 def supports_srcrev(self):
167 return True 172 return True
168 173