Merge changes from Poky bitbake 1.8

Update bitbake-dev to have extra fixes from Poky's internal (1.8) version of bitbake.
Should be able to use bitbake-dev with Poky now.

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5340 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Joshua Lock
2008-09-30 16:54:37 +00:00
parent d54280dd31
commit cbaab65ff4
9 changed files with 214 additions and 14 deletions

View File

@@ -27,15 +27,6 @@ from bb.fetch import Fetch
from bb.fetch import FetchError
from bb.fetch import runfetchcmd
def prunedir(topdir):
# Delete everything reachable from the directory named in 'topdir'.
# CAUTION: This is dangerous!
for root, dirs, files in os.walk(topdir, topdown=False):
for name in files:
os.remove(os.path.join(root, name))
for name in dirs:
os.rmdir(os.path.join(root, name))
class Git(Fetch):
"""Class to fetch a module or modules from git repositories"""
def supports(self, url, ud, d):
@@ -107,7 +98,7 @@ class Git(Fetch):
runfetchcmd("tar -czf %s %s" % (repofile, os.path.join(".", ".git", "*") ), d)
if os.path.exists(codir):
prunedir(codir)
bb.utils.prunedir(codir)
bb.mkdirhier(codir)
os.chdir(repodir)
@@ -119,7 +110,7 @@ class Git(Fetch):
runfetchcmd("tar -czf %s %s" % (ud.localpath, os.path.join(".", "*") ), d)
os.chdir(repodir)
prunedir(codir)
bb.utils.prunedir(codir)
def suppports_srcrev(self):
return True