Browse Source

fetch2/clearcase: Fix tar command working directory

We need to ensure the correct working directory is used for this
tar command to succeed.

Signed-off-by: Christian Herzig <cherzig@gauselmann.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
CHerzig@Gauselmann.de 4 years ago
parent
commit
e1a2a0e29a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/bb/fetch2/clearcase.py

+ 1 - 1
lib/bb/fetch2/clearcase.py

@@ -238,7 +238,7 @@ class ClearCase(FetchMethod):
 
         # Clean clearcase meta-data before tar
 
-        runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath])
+        runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath], workdir = ud.viewdir)
 
         # Clean up so we can create a new view next time
         self.clean(ud, d);