* [PATCH 0/1] fetch2/hg.py: add clean function
@ 2015-05-18 9:04 Robert Yang
2015-05-18 9:04 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2015-05-18 9:04 UTC (permalink / raw)
To: bitbake-devel
The following changes since commit bc162d21dd148252efcf3ed771e04c791ef4d869:
bitbake: tests/parse: Add file missing from previous commit (2015-05-16 22:40:44 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib rbt/hg
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/hg
Robert Yang (1):
fetch2/hg.py: add clean function
bitbake/lib/bb/fetch2/hg.py | 5 +++++
1 file changed, 5 insertions(+)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] fetch2/hg.py: add clean function
2015-05-18 9:04 [PATCH 0/1] fetch2/hg.py: add clean function Robert Yang
@ 2015-05-18 9:04 ` Robert Yang
0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2015-05-18 9:04 UTC (permalink / raw)
To: bitbake-devel
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'
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
bitbake/lib/bb/fetch2/hg.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 6547cca..3c80725 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -163,6 +163,11 @@ class Hg(FetchMethod):
logger.debug(1, "Running %s", updatecmd)
runfetchcmd(updatecmd, d)
+ def clean(self, ud, d):
+ """ Clean the hg dir """
+
+ bb.utils.remove(ud.localpath, True)
+
def supports_srcrev(self):
return True
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-18 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 9:04 [PATCH 0/1] fetch2/hg.py: add clean function Robert Yang
2015-05-18 9:04 ` [PATCH 1/1] " Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox