]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: Fix svk fetcher
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 17 Oct 2009 20:07:40 +0000 (21:07 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 17 Oct 2009 20:07:40 +0000 (21:07 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake-dev/lib/bb/fetch/svk.py
bitbake/lib/bb/fetch/svk.py

index 4dfae1819b1b82b9d0c79635c4a5a18b1c6ef5e5..442f85804f3c0e3aacc86b5bdb8274a85c182314 100644 (file)
@@ -67,11 +67,10 @@ class Svk(Fetch):
 
         svkroot = ud.host + ud.path
 
-        # pyflakes claims date is not known... it looks right
-        svkcmd = "svk co -r {%s} %s/%s" % (date, svkroot, ud.module)
+        svkcmd = "svk co -r {%s} %s/%s" % (ud.date, svkroot, ud.module)
 
         if ud.revision:
-            svkcmd = "svk co -r %s/%s" % (ud.revision, svkroot, ud.module)
+            svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module)
 
         # create temp directory
         localdata = data.createCopy(d)
index d863ccb6e098a219c9fb41d3e6df84b2b0263daa..442f85804f3c0e3aacc86b5bdb8274a85c182314 100644 (file)
@@ -25,7 +25,7 @@ This implementation is for svk. It is based on the svn implementation
 #
 # Based on functions from the base bb module, Copyright 2003 Holger Schurig
 
-import os, re
+import os
 import bb
 from   bb import data
 from   bb.fetch import Fetch
@@ -67,10 +67,10 @@ class Svk(Fetch):
 
         svkroot = ud.host + ud.path
 
-        svkcmd = "svk co -r {%s} %s/%s" % (date, svkroot, ud.module)
+        svkcmd = "svk co -r {%s} %s/%s" % (ud.date, svkroot, ud.module)
 
         if ud.revision:
-            svkcmd = "svk co -r %s/%s" % (ud.revision, svkroot, ud.module)
+            svkcmd = "svk co -r %s %s/%s" % (ud.revision, svkroot, ud.module)
 
         # create temp directory
         localdata = data.createCopy(d)