Avoid uninitialised array if no extra packages are specified.

git-svn-id: http://emdebian.org/svn/current@6701 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2009-11-23 21:25:46 +00:00
parent da1748d5eb
commit 7fffa79748

View file

@ -326,14 +326,21 @@ if (-l "${dir}lib64" ) {
}
exit 0;
# lenny grip-config misses gcc-4.2-base, needs:
# touch /usr/share/doc/gcc-4.2-base/.changelog.Debian.gz
# touch /usr/share/doc/gcc-4.2-base/.changelog.Debian.gz
sub add_extra_packages
{
$str = join (' ', @extrapkgs);
if (@extrapkgs)
{
print "apt-get -y $config_str install $str\n";
$retval = system ("apt-get -y $config_str install $str");
&force_unpack (@extrapkgs) if ($unpack eq "true");
system ("touch ${dir}${libdir}lists/lock");
&native if (not defined ($foreign));
}
}
sub force_unpack