Installer reinstalls packages

  • When doing an upgrade from ispCP I call:


    perl imscp-autoinstall -db


    This asks questions about the apache module to use, bind, mailserver and mysql.
    Even though exactly the same as currently installed is selected, the installer first removes apache and mysql and then installs the same version again. On the way it removes all depending packages like sympa or cacti. Is this a bug or is there a way to prevent this?


    System: Debian 6, ispCP 1.0.7, i-MSCP 1.1.13 and git master


    It seems the last version where this uninstall/install did not happen was: 1.1.0-rc4.7

  • ok, after some debugging I found that the file autoinstaller/Adapter/Debian.pm from version 1.1.0-rc4.7 had this code:


    Code
    1. # Do not remove a package scheduled for installation
    2. @{$self->{'packagesToUninstall'}} = grep {
    3. not $_ ~~ @{$self->{'packagesToInstall'}}
    4. } @{$self->{'packagesToUninstall'}};


    The new file autoinstaller/Adapter/DebianAdapter.pm does not have this part of code anymore. Therefore leaving the packages like apache2 and libmysqlclient16 in the uninstall list.


    What was the reason for this change? It basically forces a reinstall on apache and mysql in any case and purges all configurations as it uses "--purge".

  • @MuhKuh


    It's not really a bug. It's the expected behavior which is maybe wrong after all. I'll review that ASAP.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @MuhKuh


    I see. I'm wondering why I've removed that piece of code. I'll process some tests and reintroduce it ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @MuhKuh


    Thanks ;) I understand now. This was simply to avoid some drawback when switching to another MySQL version. I'll fix all that now ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206