diff options
author | Christopher Larson <chris_larson@mentor.com> | 2017-03-21 11:41:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:23 +0000 |
commit | 754e98c72ea4a4f5a16615362038c91e05fa2602 (patch) | |
tree | 0a7580b4dfe07d9a6c8adce93fe8bbc1f7975664 /bitbake/lib/bb | |
parent | 5ee3bae3bb7b80f79a84c2f0709b03f2291b6c54 (diff) | |
download | poky-754e98c72ea4a4f5a16615362038c91e05fa2602.tar.gz |
bitbake: fetch/git: drop pointless os.path.join, workdir=
The touch of .done explicitly specifies the path, so there's no need for
workdir=, and "os.path.join('.')" is identical to just '.'.
(Bitbake rev: 955cbfdaa2400d15ec428b65848e6835c9f44860)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index e1e876535f..e4202323c4 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -291,8 +291,8 @@ class Git(FetchMethod): | |||
291 | os.unlink(ud.fullmirror) | 291 | os.unlink(ud.fullmirror) |
292 | 292 | ||
293 | logger.info("Creating tarball of git repository") | 293 | logger.info("Creating tarball of git repository") |
294 | runfetchcmd("tar -czf %s %s" % (ud.fullmirror, os.path.join(".") ), d, workdir=ud.clonedir) | 294 | runfetchcmd("tar -czf %s ." % ud.fullmirror, d, workdir=ud.clonedir) |
295 | runfetchcmd("touch %s.done" % ud.fullmirror, d, workdir=ud.clonedir) | 295 | runfetchcmd("touch %s.done" % ud.fullmirror, d) |
296 | 296 | ||
297 | def unpack(self, ud, destdir, d): | 297 | def unpack(self, ud, destdir, d): |
298 | """ unpack the downloaded src to destdir""" | 298 | """ unpack the downloaded src to destdir""" |