summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
-rw-r--r--bitbake/lib/bb/fetch2/hg.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 26ad388eb7..64451846c7 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1642,7 +1642,7 @@ class Fetch(object):
1642 urls = self.urls 1642 urls = self.urls
1643 1643
1644 network = self.d.getVar("BB_NO_NETWORK") 1644 network = self.d.getVar("BB_NO_NETWORK")
1645 premirroronly = (self.d.getVar("BB_FETCH_PREMIRRORONLY") == "1") 1645 premirroronly = bb.utils.to_boolean(self.d.getVar("BB_FETCH_PREMIRRORONLY"))
1646 1646
1647 for u in urls: 1647 for u in urls:
1648 ud = self.ud[u] 1648 ud = self.ud[u]
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index cf8bee7382..8185bf4db0 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -318,7 +318,7 @@ class Git(FetchMethod):
318 def try_premirror(self, ud, d): 318 def try_premirror(self, ud, d):
319 # If we don't do this, updating an existing checkout with only premirrors 319 # If we don't do this, updating an existing checkout with only premirrors
320 # is not possible 320 # is not possible
321 if d.getVar("BB_FETCH_PREMIRRORONLY") is not None: 321 if bb.utils.to_boolean(d.getVar("BB_FETCH_PREMIRRORONLY")):
322 return True 322 return True
323 if os.path.exists(ud.clonedir): 323 if os.path.exists(ud.clonedir):
324 return False 324 return False
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 936d043112..5a2985e16c 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -99,7 +99,7 @@ class Hg(FetchMethod):
99 def try_premirror(self, ud, d): 99 def try_premirror(self, ud, d):
100 # If we don't do this, updating an existing checkout with only premirrors 100 # If we don't do this, updating an existing checkout with only premirrors
101 # is not possible 101 # is not possible
102 if d.getVar("BB_FETCH_PREMIRRORONLY") is not None: 102 if bb.utils.to_boolean(d.getVar("BB_FETCH_PREMIRRORONLY")):
103 return True 103 return True
104 if os.path.exists(ud.moddir): 104 if os.path.exists(ud.moddir):
105 return False 105 return False