Merge lp:~nijaba/charms/oneiric/limesurvey/trunk into lp:charms/oneiric/limesurvey

Proposed by Nick Barcet
Status: Merged
Approved by: Marco Ceppi
Approved revision: 16
Merged at revision: 12
Proposed branch: lp:~nijaba/charms/oneiric/limesurvey/trunk
Merge into: lp:charms/oneiric/limesurvey
Diff against target: 54 lines (+8/-2)
4 files modified
hooks/config-changed (+2/-0)
hooks/db-relation-changed (+2/-0)
hooks/install (+3/-2)
hooks/limesurvey-common (+1/-0)
To merge this branch: bzr merge lp:~nijaba/charms/oneiric/limesurvey/trunk
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Review via email: mp+84927@code.launchpad.net

Description of the change

fixed the logic on ch_get_file which seems to have changed

To post a comment you must log in.
Revision history for this message
Marco Ceppi (marcoceppi) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/config-changed'
--- hooks/config-changed 2011-12-06 22:03:26 +0000
+++ hooks/config-changed 2011-12-08 11:42:26 +0000
@@ -6,7 +6,9 @@
6if [[ -e $FORMULA_DIR/limesurvey-common ]] ; then6if [[ -e $FORMULA_DIR/limesurvey-common ]] ; then
7 . $FORMULA_DIR/limesurvey-common7 . $FORMULA_DIR/limesurvey-common
8else8else
9 juju-log "ERROR: Could not load limesurvey-common from $FORMULA_DIR"
9 echo "ERROR: Could not load limesurvey-common from $FORMULA_DIR"10 echo "ERROR: Could not load limesurvey-common from $FORMULA_DIR"
11 exit 1
10fi12fi
1113
12# Write the limesurvey config14# Write the limesurvey config
1315
=== modified file 'hooks/db-relation-changed'
--- hooks/db-relation-changed 2011-12-06 23:59:47 +0000
+++ hooks/db-relation-changed 2011-12-08 11:42:26 +0000
@@ -6,7 +6,9 @@
6if [[ -e $FORMULA_DIR/limesurvey-common ]] ; then6if [[ -e $FORMULA_DIR/limesurvey-common ]] ; then
7 . $FORMULA_DIR/limesurvey-common7 . $FORMULA_DIR/limesurvey-common
8else8else
9 juju-log "ERROR: Could not load limesurvey-common from $FORMULA_DIR"
9 echo "ERROR: Could not load limesurvey-common from $FORMULA_DIR"10 echo "ERROR: Could not load limesurvey-common from $FORMULA_DIR"
11 exit 1
10fi12fi
1113
12juju-log "Creating appropriate upload paths and directories"14juju-log "Creating appropriate upload paths and directories"
1315
=== modified file 'hooks/install'
--- hooks/install 2011-12-04 23:41:40 +0000
+++ hooks/install 2011-12-08 11:42:26 +0000
@@ -12,8 +12,9 @@
12. /usr/share/charm-helper/sh/net.sh12. /usr/share/charm-helper/sh/net.sh
13LURL="http://sourceforge.net/projects/limesurvey/files/1._LimeSurvey_stable/1.91%2B/limesurvey191plus-build11379-20111116.tar.bz2/download"13LURL="http://sourceforge.net/projects/limesurvey/files/1._LimeSurvey_stable/1.91%2B/limesurvey191plus-build11379-20111116.tar.bz2/download"
14LHASH="230643aeec368d51a37dd6ad580ba0d3b72f9ef3"14LHASH="230643aeec368d51a37dd6ad580ba0d3b72f9ef3"
15ch_get_file $LURL $LHASH15download=`ch_get_file $LURL $LHASH`
16tar -xjf /tmp/download --directory $where16echo "downloaded $download"
17tar -xjf $download --directory $where
1718
18# Downloading Latest is not possible because of lack of control sha or md5 access19# Downloading Latest is not possible because of lack of control sha or md5 access
19# use of 7 zip is therefore not required any more (see lp bug#899849)20# use of 7 zip is therefore not required any more (see lp bug#899849)
2021
=== modified file 'hooks/limesurvey-common'
--- hooks/limesurvey-common 2011-12-06 22:03:26 +0000
+++ hooks/limesurvey-common 2011-12-08 11:42:26 +0000
@@ -51,6 +51,7 @@
51function set-config {51function set-config {
52 if [[ ! -e $config_tmp ]] ; then52 if [[ ! -e $config_tmp ]] ; then
53 juju-log "Database relation has not been established yet, can't write the config"53 juju-log "Database relation has not been established yet, can't write the config"
54 echo "Database relation has not been established yet, can't write the config"
54 exit 055 exit 0
55 fi56 fi
5657

Subscribers

People subscribed via source and target branches

to all changes: