Add apt-get update before install build deps

This commit is contained in:
wpetit 2016-02-11 14:43:37 +01:00
parent 6a046e7bb3
commit 1131bbb8f4
3 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@ fi
changelog="debian/changelog"
project_name=$(get_opt project_name)
project_version=$(get_opt project_version '0.0.0')
project_version=$(get_opt project_version 0.0.0)
date=$(date -R)
top_contributor=$(git log --pretty=short | git shortlog -s -n -e | sed 's/^\s*[0-9]*\s*//g' | head -n 1)
current_commit=$(git log -n 1 --pretty=format:%h)

View File

@ -2,5 +2,6 @@
if [ -f debian/control ]; then
echo "Installing build dependencies..."
apt-get update
mk-build-deps -r -t "apt-get --force-yes -y --no-install-recommends" --install debian/control
fi

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
echo "RUN apt-get install --yes --no-install-recommends git-core" >> Dockerfile
echo "RUN apt-get update && apt-get install --yes --no-install-recommends git-core" >> Dockerfile