* Suppress 7za output on dumpBackup

keeps appending crap to output which obscures other info
This commit is contained in:
Brion Vibber 2006-04-30 03:58:19 +00:00
parent 0bcbd5c171
commit b120edb7ba
2 changed files with 5 additions and 0 deletions

View file

@ -153,6 +153,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
* (bug 5516) Show appropriate "return to" link on blocked page
* (bug 5377) Do not auto-login when creating an account as another user
* (bug 5284) Special redirect pages should remember parameters
* Suppress 7za output on dumpBackup
== Compatibility ==

View file

@ -528,6 +528,9 @@ class DumpBZip2Output extends DumpPipeOutput {
class Dump7ZipOutput extends DumpPipeOutput {
function Dump7ZipOutput( $file ) {
$command = "7za a -bd -si " . wfEscapeShellArg( $file );
// Suppress annoying useless crap from p7zip
// Unfortunately this could suppress real error messages too
$command .= " >/dev/null 2>&1";
parent::DumpPipeOutput( $command );
}
}