diff options
| author | Khem Raj <raj.khem@gmail.com> | 2011-03-02 08:33:49 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-03 22:51:33 +0000 |
| commit | 54e10127c495bdb31cfef234cd2def0c4f8cf0b0 (patch) | |
| tree | 422cda19c1e69a0c69c34fd843b0164591ca029f /bitbake/lib/bb/fetch/git.py | |
| parent | c07a153e7232d7070e97f5e661a8b2831b303806 (diff) | |
| download | poky-54e10127c495bdb31cfef234cd2def0c4f8cf0b0.tar.gz | |
fetch, fetch2: Get rid of DeprecationWarning notice
* This patch fixes a cosmetic issue currently we get with master
WARNING: /home/kraj/work/bitbake/lib/bb/fetch2/__init__.py:733:
DeprecationWarning: Call to deprecated function bb.mkdirhier: Please use bb.utils.mkdirhier instead. bb.mkdirhier("%s/%s" % (rootdir, destdir))
(Bitbake rev: 36fe59ce314c295d239b76de34c8714def2c32d5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index b37a09743e..6b565e3eb5 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py | |||
| @@ -131,7 +131,7 @@ class Git(Fetch): | |||
| 131 | 131 | ||
| 132 | # If the checkout doesn't exist and the mirror tarball does, extract it | 132 | # If the checkout doesn't exist and the mirror tarball does, extract it |
| 133 | if not os.path.exists(ud.clonedir) and os.path.exists(repofile): | 133 | if not os.path.exists(ud.clonedir) and os.path.exists(repofile): |
| 134 | bb.mkdirhier(ud.clonedir) | 134 | bb.utils.mkdirhier(ud.clonedir) |
| 135 | os.chdir(ud.clonedir) | 135 | os.chdir(ud.clonedir) |
| 136 | runfetchcmd("tar -xzf %s" % (repofile), d) | 136 | runfetchcmd("tar -xzf %s" % (repofile), d) |
| 137 | 137 | ||
| @@ -188,7 +188,7 @@ class Git(Fetch): | |||
| 188 | os.chdir(coprefix) | 188 | os.chdir(coprefix) |
| 189 | runfetchcmd("%s checkout -q -f %s%s" % (ud.basecmd, ud.tag, readpathspec), d) | 189 | runfetchcmd("%s checkout -q -f %s%s" % (ud.basecmd, ud.tag, readpathspec), d) |
| 190 | else: | 190 | else: |
| 191 | bb.mkdirhier(codir) | 191 | bb.utils.mkdirhier(codir) |
| 192 | os.chdir(ud.clonedir) | 192 | os.chdir(ud.clonedir) |
| 193 | runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.tag, readpathspec), d) | 193 | runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.tag, readpathspec), d) |
| 194 | runfetchcmd("%s checkout-index -q -f --prefix=%s -a" % (ud.basecmd, coprefix), d) | 194 | runfetchcmd("%s checkout-index -q -f --prefix=%s -a" % (ud.basecmd, coprefix), d) |
