Add apt-get update before install build deps
This commit is contained in:
parent
6a046e7bb3
commit
1131bbb8f4
|
@ -8,7 +8,7 @@ fi
|
||||||
|
|
||||||
changelog="debian/changelog"
|
changelog="debian/changelog"
|
||||||
project_name=$(get_opt project_name)
|
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)
|
date=$(date -R)
|
||||||
top_contributor=$(git log --pretty=short | git shortlog -s -n -e | sed 's/^\s*[0-9]*\s*//g' | head -n 1)
|
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)
|
current_commit=$(git log -n 1 --pretty=format:%h)
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
if [ -f debian/control ]; then
|
if [ -f debian/control ]; then
|
||||||
echo "Installing build dependencies..."
|
echo "Installing build dependencies..."
|
||||||
|
apt-get update
|
||||||
mk-build-deps -r -t "apt-get --force-yes -y --no-install-recommends" --install debian/control
|
mk-build-deps -r -t "apt-get --force-yes -y --no-install-recommends" --install debian/control
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
||||||
|
|
Loading…
Reference in New Issue