diff options
| author | Chris Larson <chris_larson@mentor.com> | 2010-03-24 16:56:12 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:32 +0100 |
| commit | 7acc132cac873e60005516272473a55a8160b9c4 (patch) | |
| tree | 2e4122862ffd856803160b6089fcb979d3efd630 /bitbake/lib/bb/fetch/perforce.py | |
| parent | bbf83fd988ca3cf9dae7d2b542a11a7c942b1702 (diff) | |
| download | poky-7acc132cac873e60005516272473a55a8160b9c4.tar.gz | |
Formatting cleanups
(Bitbake rev: 2caf134b43a44dad30af4fbe33033b3c58deee57)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
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 | |||
