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