summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-07 16:41:35 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-07 16:41:35 +0300
commit9ce34b25346271938e89c9282d7dcd33d1656e6f (patch)
treebbb37f5ba707e4d324e0991c46b23afac31649cf
parent383069134eb198ba07e3fd48904c3267f6578811 (diff)
downloaddh-illumos-9ce34b25346271938e89c9282d7dcd33d1656e6f.tar.gz
dh_illumos_gate support versions like 5.10.6.gitXYZ+1v9.5.12
-rw-r--r--debian/changelog6
-rwxr-xr-xdh_illumos_gate4
2 files changed, 8 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index c465ed3..b91100d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dh-illumos (9.5.12) unstable; urgency=medium
+
+ * dh_illumos_gate support versions like 5.10.6.gitXYZ+1
+
+ -- Igor Pashev <pashev.igor@gmail.com> Wed, 07 Oct 2015 16:40:28 +0300
+
dh-illumos (9.5.11) unstable; urgency=medium
* ld-gnu-to-sun: filter out -plugin options
diff --git a/dh_illumos_gate b/dh_illumos_gate
index 12d15e2..76ee1b1 100755
--- a/dh_illumos_gate
+++ b/dh_illumos_gate
@@ -118,11 +118,11 @@ my $changelog = changelog_parse(%options);
my $version = $changelog->{'Version'};
my $VER;
-if ($version =~ /^(\d+\.\d+).*$/) {
+if ($version =~ /^(\d+(\.\d+)+(\.git\w+)?).*$/) {
$VER = $1;
} else {
error("Could not determine illumos source version from changelog. "
- ."It should be like 2.10+1, but it is '$version'");
+ ."It should be like 5.10.6.gitXYZ+1, but it is '$version'");
}
my $tarball = "/usr/src/illumos-gate/illumos-gate-$VER.tar.xz";