summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-03-01 16:23:14 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-03-01 16:23:14 -0500
commit1ef512d6ce5d593c7fab73e6523ef9c07de8de6f (patch)
treeee6cbbfedf114f2fc9c431fbdfdfc54424e76f9e /Debian/Debhelper/Dh_Lib.pm
parentfb55603c56612e70d28efa5996f63ad00a3eeb2a (diff)
minor optimisation
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm2
1 files changed, 1 insertions, 1 deletions
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];
}