Fixup handling of deb source options

This commit is contained in:
James Page 2012-11-20 12:34:27 +00:00
parent cde1df573e
commit 3cc1f65685
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function install_hook {
juju-log "Installing glance packages"
apt-get -y install python-software-properties || exit 1
configure_install_source $(config-get openstack-origin)
configure_install_source "$(config-get openstack-origin)"
apt-get update || exit 1
apt-get -y install $PACKAGES || exit 1

View File

@ -78,7 +78,7 @@ function configure_install_source {
juju-log "$CHARM No repository key specified"
url="$src"
fi
add-apt-repository -y "$url"
echo $url > /etc/apt/sources.list.d/juju_deb.list
fi
return 0
fi