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:
parent
14d178bc9e
commit
396f64749c
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue