diff options
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/ipmi')
-rw-r--r-- | meta-inspur/meta-fp5280g2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend index 3256e834a..0eaffff37 100644 --- a/meta-inspur/meta-fp5280g2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend @@ -25,6 +25,9 @@ python do_patch() { # count from the commit version count = re.findall("-(\d{1,4})-", version_id) + if not count: + return + release = re.findall("-r(\d{1,4})", version_id) if release: auxVer = count[0] + "{0:0>4}".format(release[0]) |