Date: Sat, 23 Apr 2016 22:19:51 +0000 (UTC) From: Guido Falsi <madpilot@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413917 - in head/sysutils/ansible: . files Message-ID: <201604232219.u3NMJpB8042270@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: madpilot Date: Sat Apr 23 22:19:51 2016 New Revision: 413917 URL: https://svnweb.freebsd.org/changeset/ports/413917 Log: Make the service module respect the sleep option. PR: 208996 Submitted by: me Approved by: Nikolai Lifanov <lifanov at mail.lifanov.com> (maintainer) Added: head/sysutils/ansible/files/extra-patch-8aac5ae (contents, props changed) Modified: head/sysutils/ansible/Makefile Modified: head/sysutils/ansible/Makefile ============================================================================== --- head/sysutils/ansible/Makefile Sat Apr 23 22:10:46 2016 (r413916) +++ head/sysutils/ansible/Makefile Sat Apr 23 22:19:51 2016 (r413917) @@ -3,6 +3,7 @@ PORTNAME= ansible PORTVERSION?= 2.0.2.0 +PORTREVISION?= 1 CATEGORIES= sysutils python MASTER_SITES= http://releases.ansible.com/ansible/ @@ -17,6 +18,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml ${PYTHON_PKGNAMEPREFIX}paramiko>0:security/py-paramiko \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2 +EXTRA_PATCHES?= ${FILESDIR}/extra-patch-8aac5ae + NO_ARCH= yes USES= cpe python:2 shebangfix USE_PYTHON= autoplist distutils Added: head/sysutils/ansible/files/extra-patch-8aac5ae ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/ansible/files/extra-patch-8aac5ae Sat Apr 23 22:19:51 2016 (r413917) @@ -0,0 +1,16 @@ +--- lib/ansible/modules/core/system/service.py.orig 2016-04-19 21:55:24 UTC ++++ lib/ansible/modules/core/system/service.py +@@ -1003,7 +1003,12 @@ class FreeBsdService(Service): + if self.action == "reload": + self.action = "onereload" + +- return self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments)) ++ ret = self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments)) ++ ++ if self.sleep: ++ time.sleep(self.sleep) ++ ++ return ret + + # =========================================== + # Subclass: OpenBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604232219.u3NMJpB8042270>