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:
parent
da1748d5eb
commit
7fffa79748
1 changed files with 12 additions and 5 deletions
|
@ -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…
Reference in a new issue