distro: use -dirty marker on not clean builds

version string generated with 'git describe' contains -dirty marker if
not all changes have been commited before.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
This commit is contained in:
Patrick Zysset 2018-10-11 13:33:13 +02:00
parent 14d178bc9e
commit 396f64749c
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ def get_externalsrc_rev(d):
import subprocess import subprocess
srcdir = d.expand(d.getVar("EXTERNALSRC")) srcdir = d.expand(d.getVar("EXTERNALSRC"))
#bb.note("external source: %s" % (srcdir)) #bb.note("external source: %s" % (srcdir))
rev = subprocess.check_output("cd %s && git describe --tag" % (srcdir), rev = subprocess.check_output("cd %s && git describe --tags --dirty " % (srcdir),
shell=True).strip() shell=True).strip()
rev = rev.decode("utf-8") rev = rev.decode("utf-8")