Ticket #27 (closed enhancement: fixed)

Opened 1 year ago

Last modified 4 months ago

The same version of MeCab is already installed, the installer can skip to download/install it.

Reported by: amatubu Assigned to: brian
Priority: normal Milestone:
Component: Installer Version: 0.22.6
Severity: Keywords:
Cc:

Description

The installed MeCab? and its dictionary have the same version as ones on the internet, the installer has no need to download/install them. Downloading them takes long time, so I want the installer to skip downloading/installing.

Attachments

mecab.md5 (2.3 kB) - added by brian on 11/18/07 20:24:55.
MD5 sums for the current MeCab? zip file

Change History

11/18/07 20:24:55 changed by brian

  • attachment mecab.md5 added.

MD5 sums for the current MeCab? zip file

11/18/07 20:27:21 changed by brian

  • status changed from new to assigned.
  • version changed from 0.22.4 to 0.22.6.

This is a good idea. At present the installer does not bother checking the MeCab version number, it just downloads the 12 MB zip file and unpacks it.

The code could be modified to download the tiny PPD file first so that the MeCab version number can be checked. I think it would be necessary to give the user the option of downloading the zip file even if the version number has not changed (e.g. to repair a damaged installation). But I am reluctant to add yet another "Yes/No" dialog box to the installer.

I think a better idea would be to download a file containing the expected MD5 sums for the MeCab package (see mecab.md5) and compare these against the values calculated for the installed version of MeCab. If there are any differences then the 12 MB zip file will be downloaded and unpacked.

Trac Ticket 3 and Trac Ticket 5 mention some ways to make the installation of the MeCab package more secure. The MD5 plugin for NSIS only supports generating the MD5 sum for one file at a time. A small test program I wrote using NSIS takes less than 10 seconds on a 550 MHz system to calculate separate MD5 sums for the 46 files in the current MeCab package. The mecab.md5 file could also be used when implementing the improvement mentioned in Trac Ticket 5.

11/21/07 00:14:11 changed by brian

  • priority changed from trivial to major.

Increased the priority - a 12 MB download can take a long time so it should be avoided if possible.

11/21/07 14:11:42 changed by brian

The MeCab? Perl file is only 350 KB so does it matter if this file is always downloaded when the MeCab? parser is selected?

11/24/07 02:07:50 changed by brian

Instead of blindly downloading the huge MeCab package (around 13 MB) every time the MeCab parser is selected, the installer and the /MODIFY mode of the uninstaller now check to see if the MeCab package has already been installed.

The current CVS code downloads a file (mecab.md5) containing the MD5 sums for every file in the MeCab zip file and if all of these MD5 sums match the calculated values then the 12 MB MeCab zip file and the 350 KB MeCab Perl package are not downloaded. This code is expected to appear in the official "1.0.0 RC1" installer.

11/29/07 00:50:40 changed by brian

  • status changed from assigned to closed.
  • resolution set to fixed.

The new code has been tested in the "official" v1.0.0 RC2 installer.