Avoid uninitialised array if no extra packages are specified.

git-svn-id: http://emdebian.org/svn/current@6701 563faec7-e20c-0410-992a-a66f704d0ccd
main
codehelp 15 years ago
parent da1748d5eb
commit 7fffa79748

@ -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);
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));
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

Loading…
Cancel
Save