bitbake: ssh: fix fetcher
authorMartin Jansa <martin.jansa@gmail.com>
Mon, 28 Jan 2013 15:56:40 +0000 (16:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Jan 2013 12:46:20 +0000 (12:46 +0000)
commit03c39d358ae776b96d0374662184051f5df8d85f
tree25162ef324fb00d7d62bc78d5ba8dac66dead9bb
parente6962e3bd7ab22c28e25eb894890eeea342ae2ac
bitbake: ssh: fix fetcher

* set localpath in urldata_init
  otherwise localpath and basename were None, when fetcher was trying to
  define .lock and .done paths
  basepath = d.expand("${DL_DIR}/%s" % os.path.basename(self.localpath or self.basename))
* remove "host" from localpath
  .done and .lock files are always using just basename, so if someone
  has 2 recipes with:
  SRC_URI = "ssh://foo/file.txt"
  SRC_URI = "ssh://bar/file.txt"
  then there will be only one file.txt.done in downloads anyway (and
  only first file.txt from first server will be returned on do_fetch

(Bitbake rev: 41208760d70a657297f9ecfb48b74e2c3b594e70)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/ssh.py