[Debian-ha-commits] [resource-agents] 01/02: Clip descriptions to please lintian

Christoph Berg myon at debian.org
Wed Jan 11 10:22:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch master
in repository resource-agents.

commit 3e5ab4785801d91cef56356063bc822fb6218aa8
Author: Christoph Berg <christoph.berg at credativ.de>
Date:   Wed Jan 11 11:16:56 2017 +0100

    Clip descriptions to please lintian
---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 24a7c2f..63ad254 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,7 +42,8 @@ override_dh_gencontrol:
 	  for agent in debian/resource-agents/usr/lib/ocf/resource.d/heartbeat/*; do \
 	    echo "$$agent meta-data ..." >&2; \
 	    desc=$$($$agent meta-data 2>/dev/null | xml_grep --root resource-agent/shortdesc --text_only | head -1); \
-	    echo -n " $$(basename $$agent): $$desc\$${Newline}"; \
+	    line=$$(echo "$$(basename $$agent): $$desc" | sed -e 's/^\(.\{75\}\).\{4\}.*/\1.../'); \
+	    echo -n " $$line\$${Newline}"; \
 	  done; \
 	  echo \
 	) >> debian/resource-agents.substvars

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/resource-agents.git



More information about the Debian-HA-Commits mailing list