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 /bitbake/lib/bb/fetch | |
parent | 240b597ff260610afb6783b9d50e60ada4d3f5c3 (diff) | |
download | poky-9bf3cf103c2a02f73cc25667cfc004d1fa31ef88.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-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): | |||
91 | os.chdir(os.path.join (ud.pkgdir, os.path.basename(ud.path))) | 91 | os.chdir(os.path.join (ud.pkgdir, os.path.basename(ud.path))) |
92 | runfetchcmd(bzrcmd, d) | 92 | runfetchcmd(bzrcmd, d) |
93 | else: | 93 | else: |
94 | os.system("rm -rf %s" % os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir))) | 94 | bb.utils.remove(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir)), True) |
95 | bzrcmd = self._buildbzrcommand(ud, d, "fetch") | 95 | bzrcmd = self._buildbzrcommand(ud, d, "fetch") |
96 | logger.debug(1, "BZR Checkout %s", loc) | 96 | logger.debug(1, "BZR Checkout %s", loc) |
97 | bb.mkdirhier(ud.pkgdir) | 97 | bb.mkdirhier(ud.pkgdir) |