diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/perforce.py')
-rw-r--r-- | bitbake/lib/bb/fetch/perforce.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch/perforce.py b/bitbake/lib/bb/fetch/perforce.py index 8bc3205c2a..67de6f59fa 100644 --- a/bitbake/lib/bb/fetch/perforce.py +++ b/bitbake/lib/bb/fetch/perforce.py | |||
@@ -95,7 +95,7 @@ class Perforce(Fetch): | |||
95 | return cset.split(' ')[1] | 95 | return cset.split(' ')[1] |
96 | getcset = staticmethod(getcset) | 96 | getcset = staticmethod(getcset) |
97 | 97 | ||
98 | def localpath(self, url, ud, d): | 98 | def localpath(self, url, ud, d): |
99 | 99 | ||
100 | (host,path,user,pswd,parm) = Perforce.doparse(url,d) | 100 | (host,path,user,pswd,parm) = Perforce.doparse(url,d) |
101 | 101 | ||
@@ -180,7 +180,7 @@ class Perforce(Fetch): | |||
180 | 180 | ||
181 | count = 0 | 181 | count = 0 |
182 | 182 | ||
183 | for file in p4file: | 183 | for file in p4file: |
184 | list = file.split() | 184 | list = file.split() |
185 | 185 | ||
186 | if list[2] == "delete": | 186 | if list[2] == "delete": |
@@ -191,7 +191,7 @@ class Perforce(Fetch): | |||
191 | 191 | ||
192 | os.system("%s%s print -o %s/%s %s" % (p4cmd, p4opt, module,dest[:where],list[0])) | 192 | os.system("%s%s print -o %s/%s %s" % (p4cmd, p4opt, module,dest[:where],list[0])) |
193 | count = count + 1 | 193 | count = count + 1 |
194 | 194 | ||
195 | if count == 0: | 195 | if count == 0: |
196 | bb.msg.error(bb.msg.domain.Fetcher, "Fetch: No files gathered from the P4 fetch") | 196 | bb.msg.error(bb.msg.domain.Fetcher, "Fetch: No files gathered from the P4 fetch") |
197 | raise FetchError(module) | 197 | raise FetchError(module) |
@@ -205,5 +205,3 @@ class Perforce(Fetch): | |||
205 | raise FetchError(module) | 205 | raise FetchError(module) |
206 | # cleanup | 206 | # cleanup |
207 | os.system('rm -rf %s' % tmpfile) | 207 | os.system('rm -rf %s' % tmpfile) |
208 | |||
209 | |||