--force-yes is deprecated, and apparently dangerour

This commit is contained in:
Jamie Cameron
2016-05-27 15:08:57 -07:00
parent c7554ac611
commit b1d471fac4

View File

@@ -19,9 +19,7 @@ local (@rv, @newpacks);
# Build the command to run
$ENV{'DEBIAN_FRONTEND'} = 'noninteractive';
local $cmd = $apt_get_command eq "apt-get" ?
"$apt_get_command -y ".($force ? " --force-yes -f" : "")." install $update" :
"$apt_get_command -y".($force ? " -f" : "")." install $update";
local $cmd = "$apt_get_command -y ".($force ? " -f" : "")." install $update";
$update = join(" ", map { quotemeta($_) } split(/\s+/, $update));
print "<b>",&text('apt_install', "<tt>$cmd</tt>"),"</b><p>\n";
print "<pre>";