Commits

Mikhail Korobov  committed c03a58a

Installing libmysqlclient-dev on lenny triggers mysql 5.1 installation. This is not always wanted so install libmysqlclient15-dev for lenny by default.

  • Participants
  • Parent commits afdc77e

Comments (0)

Files changed (1)

File fab_deploy/system.py

 @supports_only('lenny, squeeze')
 def install_common_software():
     """ Installs common system packages. """
-    to_install = [
+    common_packages = [
         'python', 'build-essential', 'python-dev', 'python-setuptools',
-        'python-profiler', 'libjpeg-dev', 'libmysqlclient-dev', 'zlib1g-dev',
+        'python-profiler', 'libjpeg-dev', 'zlib1g-dev',
         'libssl-dev', 'libcurl3-dev',
 
         'screen', 'locales-all', 'curl',
         'subversion',
     ]
 
-    aptitude_install(" ".join(to_install))
+    extra_packages = {
+        'lenny': ['libmysqlclient15-dev'],
+        'squeeze': ['libmysqlclient-dev'],
+    }
+
+    aptitude_install(" ".join(common_packages + extra_packages[env.conf.OS]))
 
     # git and mercurial are outdated in stable Debian Lenny and
     # don't work with some source repositories on github and bitbucket