summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/bzr.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/bzr.py')
-rw-r--r--bitbake/lib/bb/fetch/bzr.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py
index 7d377a15d9..0eb2dad5dc 100644
--- a/bitbake/lib/bb/fetch/bzr.py
+++ b/bitbake/lib/bb/fetch/bzr.py
@@ -100,9 +100,16 @@ class Bzr(Fetch):
100 runfetchcmd(bzrcmd, d) 100 runfetchcmd(bzrcmd, d)
101 101
102 os.chdir(ud.pkgdir) 102 os.chdir(ud.pkgdir)
103
104 scmdata = ud.parm.get("scmdata", "")
105 if scmdata == "keep":
106 tar_flags = ""
107 else:
108 tar_flags = "--exclude '.bzr' --exclude '.bzrtags'"
109
103 # tar them up to a defined filename 110 # tar them up to a defined filename
104 try: 111 try:
105 runfetchcmd("tar --exclude '.bzr' --exclude '.bzrtags' -czf %s %s" % (ud.localpath, os.path.basename(ud.pkgdir)), d) 112 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(ud.pkgdir)), d)
106 except: 113 except:
107 t, v, tb = sys.exc_info() 114 t, v, tb = sys.exc_info()
108 try: 115 try: