From: Joey Hess Date: Mon, 1 Mar 2010 21:23:14 +0000 (-0500) Subject: minor optimisation X-Git-Tag: 7.4.16~6 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1ef512d6ce5d593c7fab73e6523ef9c07de8de6f;p=debhelper.git minor optimisation --- 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]; }