[debhelper-devel] [debhelper] 03/03: Dh_Lib: Guard against invalid "snippet-order" values in autoscript

Niels Thykier nthykier at moszumanska.debian.org
Thu Jan 4 19:29:53 UTC 2018


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 950bb66a3436798ec032c4ca1e05cbbc980dc9b2
Author: Niels Thykier <niels at thykier.net>
Date:   Thu Jan 4 19:22:16 2018 +0000

    Dh_Lib: Guard against invalid "snippet-order" values in autoscript
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 lib/Debian/Debhelper/Dh_Lib.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Debian/Debhelper/Dh_Lib.pm b/lib/Debian/Debhelper/Dh_Lib.pm
index 6c8194a..b2873e4 100644
--- a/lib/Debian/Debhelper/Dh_Lib.pm
+++ b/lib/Debian/Debhelper/Dh_Lib.pm
@@ -931,6 +931,8 @@ sub autoscript {
 	my $outfile="debian/".pkgext($package)."$script.debhelper";
 	if ($extra_options && exists($extra_options->{'snippet-order'})) {
 		my $order = $extra_options->{'snippet-order'};
+		error("Internal error - snippet order set to unknown value: \"${order}\"")
+			if $order ne 'service';
 		$outfile = generated_file($package, "${script}.${order}");
 	}
 

-- 
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