diff options
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-core/os-release')
-rw-r--r-- | meta-openbmc-mods/meta-common/recipes-core/os-release/version-vars.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-core/os-release/version-vars.inc b/meta-openbmc-mods/meta-common/recipes-core/os-release/version-vars.inc index 95061a570..872e78eba 100644 --- a/meta-openbmc-mods/meta-common/recipes-core/os-release/version-vars.inc +++ b/meta-openbmc-mods/meta-common/recipes-core/os-release/version-vars.inc @@ -53,12 +53,12 @@ python() { 'describe --long --abbrev=6 ' + '--match \'{}-[0-9]*\.[0-9]*\''.format(gen)) - # If no tag in meta-openbmc-mods, provide default version + # If no tag, provide default version if meta_vers.startswith('fatal:'): - meta_vers = '{}-0.0-0'.format(gen) + meta_vers = '{}-0.0-0-g0'.format(gen) meta_hash = irun_git(d, mibase, 'rev-parse HEAD') - # If no hash from meta-openbmc-mods, provide default + # If no hash, provide default if meta_hash.startswith('fatal:'): meta_hash = '00000000' version_id = '{}-{}'.format(meta_vers, obmc_hash[0:7]) |