3 def get_sanitized_version(s):
5 max_version_component = "99"
8 if not rc_separator in s:
11 version = s.split(rc_separator)[0][1:]
12 vcomps = version.split(".")
19 vcomps_new.insert(0, i)
22 vcomps_new.insert(0, max_version_component)
24 vcomps_new.insert(0, "%i" % (int(i) - 1))
27 return "v" + ".".join(vcomps_new) + "+" + s.replace("-", "")
29 PV = "${@get_sanitized_version(bb.data.getVar('DISTRO_VERSION', d, 1))}"
32 mkdir -p ${D}${sysconfdir}
33 echo "Familiar ${DISTRO_VERSION}" > ${D}${sysconfdir}/familiar-version