[debhelper-devel] [debhelper] 08/21: Fix enabling multiple times of units

Niels Thykier nthykier at moszumanska.debian.org
Fri Oct 13 18:27:20 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit ddcd9d20b3c321a95f9e3e2f0e1978468717d773
Author: Felipe Sateler <fsateler at debian.org>
Date:   Wed Oct 4 18:27:37 2017 -0300

    Fix enabling multiple times of units
---
 dh_installsystemd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dh_installsystemd b/dh_installsystemd
index 793ebd8..ccb55a5 100755
--- a/dh_installsystemd
+++ b/dh_installsystemd
@@ -320,7 +320,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 			push @start_units, $name;
 		}
 
-		if (contains_install_section($name)) {
+		if (contains_install_section($name) && !grep { $_ eq $name } @enable_units) {
 			push @enable_units, $name;
 		}
 	}

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




More information about the debhelper-devel mailing list