~frankban/charms/trusty/juju-gui/rm-symlink

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Francesco Banconi
  • Date: 2014-04-22 12:58:19 UTC
  • mfrom: (182.1.4 trusty-defaults)
  • Revision ID: francesco.banconi@canonical.com-20140422125819-jd8c0enge2un7be7
Use trusty as default target series.

Switched to lp:~juju-gui/charms/trusty/juju-gui/trunk
(I'll send an email after this branch is landed).

Change "make deploy" to install the trusty charm by default.

Also run "apt-get update" at the beginning of the install hook.

Tests: `make unittest`.

R=rharding
CC=
https://codereview.appspot.com/90220043

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
)
27
27
 
28
28
 
29
 
# Python dependencies must be installed here so that the charm can import and
30
 
# use required libraries.
31
29
PYTHON_DEPENDENCIES = (
32
30
    'libapt-pkg-dev', 'python-apt', 'python-launchpadlib', 'python-tempita',
33
31
    'python-yaml'
34
32
)
35
33
 
 
34
 
 
35
# Update the list of dependencies to ensure sources are not stale.
 
36
run('juju-log', '--', 'Updating APT sources.')
 
37
run('apt-get', 'update')
 
38
# Python dependencies must be installed here so that the charm can import and
 
39
# use required libraries.
36
40
run('juju-log', '--', 'Installing base Python dependencies: {}.'.format(
37
41
    ', '.join(PYTHON_DEPENDENCIES)))
38
42
apt_get_install(*PYTHON_DEPENDENCIES)