diff options
Diffstat (limited to 'bitbake/lib/bb/fetch')
| -rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 4 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/git.py | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 0515f2a5e9..ac698a0d1c 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
| @@ -168,10 +168,6 @@ class Fetch(object): | |||
| 168 | d Is a bb.data instance | 168 | d Is a bb.data instance |
| 169 | tarfn is the name of the tarball | 169 | tarfn is the name of the tarball |
| 170 | """ | 170 | """ |
| 171 | tarpath = os.path.join(data.getVar("DL_DIR", d, 1), tarfn) | ||
| 172 | if os.access(tarpath, os.R_OK): | ||
| 173 | return True | ||
| 174 | |||
| 175 | pn = data.getVar('PN', d, True) | 171 | pn = data.getVar('PN', d, True) |
| 176 | src_tarball_stash = None | 172 | src_tarball_stash = None |
| 177 | if pn: | 173 | if pn: |
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index f30ae2360a..49235c141e 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py | |||
| @@ -129,7 +129,7 @@ class Git(Fetch): | |||
| 129 | os.chdir(repodir) | 129 | os.chdir(repodir) |
| 130 | rungitcmd("tar -xzf %s" % (repofile),d) | 130 | rungitcmd("tar -xzf %s" % (repofile),d) |
| 131 | else: | 131 | else: |
| 132 | rungitcmd("git clone %s://%s%s %s" % (proto, host, path, repodir),d) | 132 | rungitcmd("git clone -n %s://%s%s %s" % (proto, host, path, repodir),d) |
| 133 | 133 | ||
| 134 | os.chdir(repodir) | 134 | os.chdir(repodir) |
| 135 | rungitcmd("git pull %s://%s%s" % (proto, host, path),d) | 135 | rungitcmd("git pull %s://%s%s" % (proto, host, path),d) |
