diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-12-17 12:26:35 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:52 +0000 |
commit | 9bf3cf103c2a02f73cc25667cfc004d1fa31ef88 (patch) | |
tree | 8294253c04be4a101f4c0d48ff7ee0a903e56eae | |
parent | 240b597ff260610afb6783b9d50e60ada4d3f5c3 (diff) | |
download | openembedded-core-9bf3cf103c2a02f73cc25667cfc004d1fa31ef88.tar.gz openembedded-core-9bf3cf103c2a02f73cc25667cfc004d1fa31ef88.tar.bz2 openembedded-core-9bf3cf103c2a02f73cc25667cfc004d1fa31ef88.zip |
bzr: use utils.remove instead of os.system
(Bitbake rev: 0ef8a9b3780525a28567ebe42956e5cae79ada8c)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/fetch/bzr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py index 0eb2dad5dc..afaf799900 100644 --- a/bitbake/lib/bb/fetch/bzr.py +++ b/bitbake/lib/bb/fetch/bzr.py @@ -91,7 +91,7 @@ class Bzr(Fetch): os.chdir(os.path.join (ud.pkgdir, os.path.basename(ud.path))) runfetchcmd(bzrcmd, d) else: - os.system("rm -rf %s" % os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir))) + bb.utils.remove(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir)), True) bzrcmd = self._buildbzrcommand(ud, d, "fetch") logger.debug(1, "BZR Checkout %s", loc) bb.mkdirhier(ud.pkgdir) |