From 02a4dd7c783a43110a4422b3b76ccf8184fa870b Mon Sep 17 00:00:00 2001 From: Andrei Belov Date: Mon, 1 Oct 2018 09:41:03 +0300 Subject: [PATCH] Skipping minor entries while producing generic CHANGES. Currently we consider any changes with revision other than 1 as packages-specific, thus there is no need to include such entries to the generic Unit change log. --- docs/changes.xsls | 5 +++++ docs/changes.xslt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/changes.xsls b/docs/changes.xsls index f2ba1c8e..2f3bcc46 100644 --- a/docs/changes.xsls +++ b/docs/changes.xsls @@ -63,6 +63,9 @@ X:template = "changes" { X:var apply = { !string_in_list(list="@apply", string="$pkgname") } X:var pkgname_ = { !beautify(pkgname="$pkgname") } + X:choose { + X:when "$pkgname='unit' and $format='generic' and @rev!=1" {} + X:otherwise { X:if "$apply=$pkgname" { X:if "$format='generic'" { @@ -112,6 +115,8 @@ X:template = "changes" { X:text { } } } + } + } } diff --git a/docs/changes.xslt b/docs/changes.xslt index 22abb656..032d5c37 100644 --- a/docs/changes.xslt +++ b/docs/changes.xslt @@ -64,6 +64,9 @@ + + + @@ -113,6 +116,8 @@ + +