]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
familiar: bump DISTRO_VERSION to v0.8.4.1-pre
authorRene Wagner <rw@handhelds.org>
Sat, 14 Oct 2006 14:53:38 +0000 (16:53 +0200)
committerRene Wagner <rw@handhelds.org>
Sat, 14 Oct 2006 14:53:38 +0000 (16:53 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/conf/distro/familiar-0.8.4.conf
org.handhelds.familiar/packages/familiar/familiar-version.bb

index 39375c8702afbd7eac8ff234d7f13a3506380fbe..ee478d1a50609ac0dee788c65e4b2d4347dcf800 100644 (file)
@@ -1,6 +1,6 @@
 DISTRO = "familiar"
 DISTRO_NAME = "Familiar Linux"
-DISTRO_VERSION = "v0.8.4"
+DISTRO_VERSION = "v0.8.4.1-pre"
 
 include conf/distro/familiar.conf
 include conf/distro/familiar-feeds.inc
index 8ad61cbbccf1503b581490500ebedcd52cf34881..ba1c73afee6de458c1fb7302f24a2b98a104ee63 100644 (file)
@@ -3,28 +3,33 @@ PACKAGE_ARCH = "all"
 def get_sanitized_version(s):
 
        max_version_component = "99"
-       rc_separator = "-rc"
+       pre_separators = ["-rc", "-pre"]
 
-       if not rc_separator in s:
-               return s
+       ver = s
 
-       version = s.split(rc_separator)[0][1:]
-       vcomps = version.split(".")
-       vcomps.reverse()
-
-       vcomps_new = []
-       done = False
-       for i in vcomps:
-               if done:
-                       vcomps_new.insert(0, i)
-                       continue
-               if int(i) < 1:
-                       vcomps_new.insert(0, max_version_component)
+       for sep in pre_separators:
+               if not sep in s:
                        continue
-               vcomps_new.insert(0, "%i" % (int(i) - 1))
-               done = True
 
-       return "v" + ".".join(vcomps_new) + "+" +  s.replace("-", "")
+               version = s.split(sep)[0][1:]
+               vcomps = version.split(".")
+               vcomps.reverse()
+
+               vcomps_new = []
+               done = False
+               for i in vcomps:
+                       if done:
+                               vcomps_new.insert(0, i)
+                               continue
+                       if int(i) < 1:
+                               vcomps_new.insert(0, max_version_component)
+                               continue
+                       vcomps_new.insert(0, "%i" % (int(i) - 1))
+                       done = True
+
+               ver = "v" + ".".join(vcomps_new) + "+" +  s.replace("-", "")
+       
+       return ver
 
 PV = "${@get_sanitized_version(bb.data.getVar('DISTRO_VERSION', d, 1))}"