From 1ef512d6ce5d593c7fab73e6523ef9c07de8de6f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 1 Mar 2010 16:23:14 -0500 Subject: [PATCH] minor optimisation --- Debian/Debhelper/Dh_Lib.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index b96ea34..70fead4 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -65,11 +65,11 @@ sub init { $dh{NO_ACT}=1; } - my @allpackages=getpackages(); # Get the name of the main binary package (first one listed in # debian/control). Only if the main package was not set on the # command line. if (! exists $dh{MAINPACKAGE} || ! defined $dh{MAINPACKAGE}) { + my @allpackages=getpackages(); $dh{MAINPACKAGE}=$allpackages[0]; } -- 2.39.5