]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
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:45:42 +0000 (12:45 +0000)
commit41208760d70a657297f9ecfb48b74e2c3b594e70
treee1422a88d43a15ba291375882d08053471b19e62
parent311e7ba8b2c88fbf6f16b6ffb1400226b155ddd4
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

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