diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-01-10 23:05:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-12 13:47:14 +0000 |
commit | 2ef204dcdd28d60819ad7a413426b9676c54a3a4 (patch) | |
tree | 64cefc01e17bedaea8501555277c9d4032e3ad6f /bitbake/lib/bb/fetch/osc.py | |
parent | c405a3a13eb961365adb788e710fa26513605543 (diff) | |
download | poky-2ef204dcdd28d60819ad7a413426b9676c54a3a4.tar.gz |
*: 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>
Diffstat (limited to 'bitbake/lib/bb/fetch/osc.py')
-rw-r--r-- | bitbake/lib/bb/fetch/osc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/osc.py b/bitbake/lib/bb/fetch/osc.py index 26820967a3..8e0423d762 100644 --- a/bitbake/lib/bb/fetch/osc.py +++ b/bitbake/lib/bb/fetch/osc.py | |||
@@ -11,6 +11,7 @@ import sys | |||
11 | import logging | 11 | import logging |
12 | import bb | 12 | import bb |
13 | from bb import data | 13 | from bb import data |
14 | from bb import utils | ||
14 | from bb.fetch import Fetch | 15 | from bb.fetch import Fetch |
15 | from bb.fetch import FetchError | 16 | from bb.fetch import FetchError |
16 | from bb.fetch import MissingParameterError | 17 | from bb.fetch import MissingParameterError |
@@ -123,8 +124,7 @@ class Osc(Fetch): | |||
123 | """ | 124 | """ |
124 | 125 | ||
125 | config_path = os.path.join(data.expand('${OSCDIR}', d), "oscrc") | 126 | config_path = os.path.join(data.expand('${OSCDIR}', d), "oscrc") |
126 | if (os.path.exists(config_path)): | 127 | bb.utils.remove(config_path) |
127 | os.remove(config_path) | ||
128 | 128 | ||
129 | f = open(config_path, 'w') | 129 | f = open(config_path, 'w') |
130 | f.write("[general]\n") | 130 | f.write("[general]\n") |