Merge lp:~thedac/charms/precise/errors/set-django-version into lp:~daisy-pluckers/charms/precise/errors/trunk

Proposed by David Ames
Status: Merged
Merged at revision: 36
Proposed branch: lp:~thedac/charms/precise/errors/set-django-version
Merge into: lp:~daisy-pluckers/charms/precise/errors/trunk
Diff against target: 48 lines (+15/-0)
3 files modified
config.yaml (+6/-0)
hooks/common (+2/-0)
hooks/install (+7/-0)
To merge this branch: bzr merge lp:~thedac/charms/precise/errors/set-django-version
Reviewer Review Type Date Requested Status
Brian Murray Approve
Review via email: mp+211778@code.launchpad.net

Description of the change

Set the specific python-django version of the package and hold it at that version

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) :
review: Approve
37. By David Ames

Fix typo

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2014-03-07 20:03:17 +0000
+++ config.yaml 2014-03-19 17:17:04 +0000
@@ -62,6 +62,12 @@
62 type: string62 type: string
63 default: 'ppa:daisy-pluckers/daisy-seeds'63 default: 'ppa:daisy-pluckers/daisy-seeds'
64 description: The location for the daisy-dependencies package.64 description: The location for the daisy-dependencies package.
65 django_repository:
66 type: string
67 description: The apt repository for python-django
68 django_version:
69 type: string
70 description: The package version of python-django to install and hold
65 openid_trust_root:71 openid_trust_root:
66 type: string72 type: string
67 default: 'http://errors.staging.ubuntu.com/'73 default: 'http://errors.staging.ubuntu.com/'
6874
=== modified file 'hooks/common'
--- hooks/common 2014-03-17 16:09:32 +0000
+++ hooks/common 2014-03-19 17:17:04 +0000
@@ -25,6 +25,8 @@
25ERROR_CODE_DIRS="$(config-get error_code_dirs)"25ERROR_CODE_DIRS="$(config-get error_code_dirs)"
26REGION="$(config-get region)"26REGION="$(config-get region)"
27NRPE_URL_CHECK_PARAMS="$(config-get nrpe_url_check_params)"27NRPE_URL_CHECK_PARAMS="$(config-get nrpe_url_check_params)"
28DJANGO_REPOSITORY="$(config-get django_repository)"
29DJANGO_VERSION="$(config-get django_version)"
2830
29save_setting () {31save_setting () {
30 key="$1"32 key="$1"
3133
=== modified file 'hooks/install'
--- hooks/install 2013-05-03 11:02:27 +0000
+++ hooks/install 2014-03-19 17:17:04 +0000
@@ -17,7 +17,14 @@
17fi17fi
1818
19add-apt-repository "$(config-get repository)"19add-apt-repository "$(config-get repository)"
20if [ -n "$DJANGO_REPOSITORY" ]; then
21 add-apt-repository "$DJANGO_REPOSITORY"
22fi
20apt-get update23apt-get update
24if [ -n "$DJANGO_VERSION" ]; then
25 DEBCONF_FRONTEND=noninteractive apt-get install -y python-django=${DJANGO_VERSION}
26 echo "python-django hold" | dpkg --set-selections
27fi
21DEBCONF_FRONTEND=noninteractive apt-get install -y errors-dependencies28DEBCONF_FRONTEND=noninteractive apt-get install -y errors-dependencies
2229
23# Create groups30# Create groups

Subscribers

People subscribed via source and target branches

to all changes: