diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-01 16:23:14 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-01 16:23:14 -0500 |
commit | 1ef512d6ce5d593c7fab73e6523ef9c07de8de6f (patch) | |
tree | ee6cbbfedf114f2fc9c431fbdfdfc54424e76f9e | |
parent | fb55603c56612e70d28efa5996f63ad00a3eeb2a (diff) | |
download | debhelper-1ef512d6ce5d593c7fab73e6523ef9c07de8de6f.tar.gz |
minor optimisation
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index b96ea344..70fead46 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]; } |