*: use utils.remove() some more

(Bitbake rev: d3489b141cac1197324661680fe38b8a88bc49b4)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Bernhard Reutner-Fischer
2011-01-10 23:05:19 +01:00
committed by Richard Purdie
parent c405a3a13e
commit 2ef204dcdd
5 changed files with 13 additions and 23 deletions

View File

@@ -11,6 +11,7 @@ import sys
import logging
import bb
from bb import data
from bb import utils
from bb.fetch import Fetch
from bb.fetch import FetchError
from bb.fetch import MissingParameterError
@@ -123,8 +124,7 @@ class Osc(Fetch):
"""
config_path = os.path.join(data.expand('${OSCDIR}', d), "oscrc")
if (os.path.exists(config_path)):
os.remove(config_path)
bb.utils.remove(config_path)
f = open(config_path, 'w')
f.write("[general]\n")