Add repair step

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-07-10 21:27:35 +02:00
parent 489103eede
commit 0fe115a536
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 18 additions and 1 deletions

View File

@ -175,6 +175,19 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes);
}
private function introduceComicbookTypes() {
$updatedMimetypes = [
'cb7' => 'application/comicbook+7z',
'cba' => 'application/comicbook+ace',
'cbr' => 'application/comicbook+rar',
'cbt' => 'application/comicbook+tar',
'cbtc' => 'application/comicbook+truecrypt',
'cbz' => 'application/comicbook+zip',
];
return $this->updateMimetypes($updatedMimetypes);
}
/**
* Fix mime types
*/
@ -208,5 +221,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) {
$out->info('Fixed visio mime types');
}
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.10', '<') && $this->introduceComicbookTypes()) {
$out->info('Fixed comicbook mime types');
}
}
}

View File

@ -29,7 +29,7 @@
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
$OC_Version = array(14, 0, 0, 9);
$OC_Version = array(14, 0, 0, 10);
// The human readable string
$OC_VersionString = '14.0.0 alpha';