summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/perforce.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/perforce.py')
-rw-r--r--bitbake/lib/bb/fetch2/perforce.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py
index b8169f2cc9..50cb479096 100644
--- a/bitbake/lib/bb/fetch2/perforce.py
+++ b/bitbake/lib/bb/fetch2/perforce.py
@@ -168,15 +168,13 @@ class Perforce(FetchMethod):
168 168
169 bb.utils.remove(ud.pkgdir, True) 169 bb.utils.remove(ud.pkgdir, True)
170 bb.utils.mkdirhier(ud.pkgdir) 170 bb.utils.mkdirhier(ud.pkgdir)
171 os.chdir(ud.pkgdir)
172 171
173 for afile in filelist: 172 for afile in filelist:
174 p4fetchcmd = self._buildp4command(ud, d, 'print', afile) 173 p4fetchcmd = self._buildp4command(ud, d, 'print', afile)
175 bb.fetch2.check_network_access(d, p4fetchcmd) 174 bb.fetch2.check_network_access(d, p4fetchcmd)
176 runfetchcmd(p4fetchcmd, d) 175 runfetchcmd(p4fetchcmd, d, workdir=ud.pkgdir)
177 176
178 os.chdir(ud.pkgdir) 177 runfetchcmd('tar -czf %s p4' % (ud.localpath), d, cleanup=[ud.localpath], workdir=ud.pkgdir)
179 runfetchcmd('tar -czf %s p4' % (ud.localpath), d, cleanup = [ud.localpath])
180 178
181 def clean(self, ud, d): 179 def clean(self, ud, d):
182 """ Cleanup p4 specific files and dirs""" 180 """ Cleanup p4 specific files and dirs"""