pallet/java-crate — pull request #2 by thearthur (2013-03-07 22:06:00+00:00)
Title: ensure that the webupd8 repo is assed before refreshing its contents

prevent this problem:

ExceptionInfo Error prevented completion of phase: Error executing script :
:cmd echo "Update package list for repository webupd8team-java-$(lsb_release -c -s)..."
{ echo "package-manager update ..."
{ aptitude update || true; } || { echo "package-manager update " failed; exit 1; } >&2
echo "...done"; } || { echo "Update package list for repository webupd8team-java-$(lsb_release -c -s)" failed; exit 1; } >&2
echo "...done"
echo "Accept Oracle license..."
{ echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections; } || { echo "Accept Oracle license" failed; exit 1; } >&2
echo "...done"
echo "Package source..."
{ aptitude install -q -y python-software-properties && aptitude show python-software-properties && add-apt-repository -y ppa:webupd8team/java; } || { echo "Package source" failed; exit 1; } >&2
echo "...done"
echo "Packages..."
{ { debconf-set-selections <&2
echo "...done"
echo "Directory $(getent passwd ubuntu | cut -d: -f6)/.ssh/..."
{ mkdir -m "755" -p $(getent passwd ubuntu | cut -d: -f6)/.ssh/ && chown --recursive ubuntu $(getent passwd ubuntu | cut -d: -f6)/.ss\
h/ && chmod 755 $(getent passwd ubuntu | cut -d: -f6)/.ssh/; } || { echo "Directory $(getent passwd ubuntu | cut -d: -f6)/.ssh/" fail\
ed; exit 1; } >&2
echo "...done"