]> code.ossystems Code Review - openembedded-core.git/commitdiff
Switch some references to moved functions
authorChris Larson <chris_larson@mentor.com>
Sun, 11 Apr 2010 05:05:02 +0000 (22:05 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:33 +0000 (15:41 +0100)
(Bitbake rev: ddea2978cb969cf1381cfee5c055de0c9e56a4e3)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/build.py
bitbake/lib/bb/fetch/local.py
bitbake/lib/bb/fetch/wget.py
bitbake/lib/bb/persist_data.py

index 1882733a5f4a7194508cff91c00b5f26471f8608..3d7101399891eda6fa509c478d78f2fda331b3f2 100644 (file)
@@ -27,6 +27,7 @@
 
 from bb import data, event, mkdirhier, utils
 import bb, os, sys
+import bb.utils
 
 # When we execute a python function we'd like certain things
 # in all namespaces, hence we add them to __builtins__
@@ -107,7 +108,7 @@ def exec_func(func, d, dirs = None):
     else:
         dirs = (data.expand(flags['dirs'], d) or "").split()
     for adir in dirs:
-        mkdirhier(adir)
+        bb.utils.mkdirhier(adir)
 
     if len(dirs) > 0:
         adir = dirs[-1]
@@ -124,7 +125,7 @@ def exec_func(func, d, dirs = None):
     t = data.getVar('T', d, 1)
     if not t:
         bb.msg.fatal(bb.msg.domain.Build, "T not set")
-    mkdirhier(t)
+    bb.utils.mkdirhier(t)
     logfile = "%s/log.%s.%s" % (t, func, str(os.getpid()))
     runfile = "%s/run.%s.%s" % (t, func, str(os.getpid()))
 
@@ -320,7 +321,7 @@ def stamp_internal(task, d, file_name):
     if not stamp:
         return
     stamp = "%s.%s" % (stamp, task)
-    mkdirhier(os.path.dirname(stamp))
+    bb.utils.mkdirhier(os.path.dirname(stamp))
     # Remove the file and recreate to force timestamp
     # change on broken NFS filesystems
     if os.access(stamp, os.F_OK):
index a2abc8639c15900d26d1461f51a962573af4e368..882a2c4602bd7d66e2763614aeff803edda9a44a 100644 (file)
@@ -27,6 +27,7 @@ BitBake build tools.
 
 import os
 import bb
+import bb.utils
 from   bb import data
 from   bb.fetch import Fetch
 
@@ -47,7 +48,7 @@ class Local(Fetch):
         if path[0] != "/":
             filespath = data.getVar('FILESPATH', d, 1)
             if filespath:
-                newpath = bb.which(filespath, path)
+                newpath = bb.utils.which(filespath, path)
             if not newpath:
                 filesdir = data.getVar('FILESDIR', d, 1)
                 if filesdir:
index ae1c6ad13632a3dfd6475a290769f621117dcc5f..8b687372a4f8407bb01607f07ca518ef4fab9f63 100644 (file)
@@ -30,6 +30,7 @@ import bb
 from   bb import data
 from   bb.fetch import Fetch
 from   bb.fetch import FetchError
+from   bb.fetch import encodeurl, decodeurl
 
 class Wget(Fetch):
     """Class to fetch urls via 'wget'"""
@@ -41,7 +42,7 @@ class Wget(Fetch):
 
     def localpath(self, url, ud, d):
 
-        url = bb.encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}])
+        url = encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}])
         ud.basename = os.path.basename(ud.path)
         ud.localfile = data.expand(os.path.basename(url), d)
 
@@ -60,7 +61,7 @@ class Wget(Fetch):
                 fetchcmd = data.getVar("FETCHCOMMAND", d, 1)
 
             uri = uri.split(";")[0]
-            uri_decoded = list(bb.decodeurl(uri))
+            uri_decoded = list(decodeurl(uri))
             uri_type = uri_decoded[0]
             uri_host = uri_decoded[1]
 
index e2bbbe54f75c08b10cc7992907f053f609f440a6..a26244510a99d30a757c7b2829d7683971b0dc0e 100644 (file)
@@ -16,6 +16,7 @@
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 import bb, os
+import bb.utils
 
 try:
     import sqlite3
@@ -49,7 +50,7 @@ class PersistData:
         try:
             os.stat(self.cachedir)
         except OSError:
-            bb.mkdirhier(self.cachedir)
+            bb.utils.mkdirhier(self.cachedir)
 
         self.cachefile = os.path.join(self.cachedir,"bb_persist_data.sqlite3")
         bb.msg.debug(1, bb.msg.domain.PersistData, "Using '%s' as the persistent data cache" % self.cachefile)