summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS5
-rw-r--r--lib/metadata/proteanos.sh1
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c77d41e..2ea268b 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,11 @@ opkbuild version 4.2.2+dev
Released: ????-??-??
+libopkbuild:
+
+ * ProteanOS source package versions may now contain epochs. This
+ complies with the latest draft of SPF 2.0.
+
opkbuild version 4.2.2
----------------------
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index 7b235e5..59f2c14 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -19,6 +19,7 @@
_OB_NAME_RE_PROTEANOS='^[a-z0-9][a-z0-9+.-]+$'
_OB_VERSION_RE_PROTEANOS='^'
+_OB_VERSION_RE_PROTEANOS=${_OB_VERSION_RE_PROTEANOS}'([1-9][0-9]*:)?'
_OB_VERSION_RE_PROTEANOS=${_OB_VERSION_RE_PROTEANOS}'[0-9a-z.~+]+'
_OB_VERSION_RE_PROTEANOS=${_OB_VERSION_RE_PROTEANOS}'(\+sip[1-9][0-9]*)?'
_OB_VERSION_RE_PROTEANOS=${_OB_VERSION_RE_PROTEANOS}'(-[0-9]+)?'