summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-04 14:40:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-07 09:06:37 +0000
commit7202a77134029cb37540c785ce0161a4dd574853 (patch)
treee9b8d7d3c180260317b661ce0f325a5492d9a6db /bitbake/lib/bb/fetch2/git.py
parent8f2abf4a9f000d42e98c4936e393bd5033a1af48 (diff)
downloadpoky-7202a77134029cb37540c785ce0161a4dd574853.tar.gz
bitbake/fetch2: Use True instead of integer values
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 38e2c93be4..35031d28c4 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -101,7 +101,7 @@ class Git(FetchMethod):
101 else: 101 else:
102 username = "" 102 username = ""
103 103
104 repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball) 104 repofile = os.path.join(data.getVar("DL_DIR", d, True), ud.mirrortarball)
105 105
106 ud.repochanged = not os.path.exists(repofile) 106 ud.repochanged = not os.path.exists(repofile)
107 107
@@ -138,7 +138,7 @@ class Git(FetchMethod):
138 138
139 def build_mirror_data(self, url, ud, d): 139 def build_mirror_data(self, url, ud, d):
140 # Generate a mirror tarball if needed 140 # Generate a mirror tarball if needed
141 repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball) 141 repofile = os.path.join(data.getVar("DL_DIR", d, True), ud.mirrortarball)
142 142
143 os.chdir(ud.clonedir) 143 os.chdir(ud.clonedir)
144 mirror_tarballs = data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) 144 mirror_tarballs = data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True)