summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/hg.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/fetch/hg.py')
-rw-r--r--lib/bb/fetch/hg.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
index 6bc261ae6..3c649a6ad 100644
--- a/lib/bb/fetch/hg.py
+++ b/lib/bb/fetch/hg.py
@@ -143,9 +143,15 @@ class Hg(Fetch):
logger.debug(1, "Running %s", updatecmd)
runfetchcmd(updatecmd, d)
+ scmdata = ud.parm.get("scmdata", "")
+ if scmdata == "keep":
+ tar_flags = ""
+ else:
+ tar_flags = "--exclude '.hg' --exclude '.hgrags'"
+
os.chdir(ud.pkgdir)
try:
- runfetchcmd("tar --exclude '.hg' --exclude '.hgrags' -czf %s %s" % (ud.localpath, ud.module), d)
+ runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.module), d)
except:
t, v, tb = sys.exc_info()
try: