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