diff options
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") |