summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/svk.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/fetch2/svk.py')
-rw-r--r--lib/bb/fetch2/svk.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bb/fetch2/svk.py b/lib/bb/fetch2/svk.py
index 70f72c80a..117a22f43 100644
--- a/lib/bb/fetch2/svk.py
+++ b/lib/bb/fetch2/svk.py
@@ -53,8 +53,12 @@ class Svk(FetchMethod):
ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d)
- def forcefetch(self, url, ud, d):
- return ud.date == "now"
+ def need_update(self, url, ud, d):
+ if ud.date == "now":
+ return True
+ if not os.path.exists(ud.localpath):
+ return True
+ return False
def download(self, loc, ud, d):
"""Fetch urls"""