From a2580d735bfb180e4e8d986e65bfb655e1c551f9 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 22 Jan 2020 18:57:21 +0100 Subject: list-build-dependencies: replace hardcoded branch with current branch --- scripts/list-build-dependencies | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/list-build-dependencies b/scripts/list-build-dependencies index e7fc3301..21cc56ff 100755 --- a/scripts/list-build-dependencies +++ b/scripts/list-build-dependencies @@ -75,8 +75,10 @@ echo "e.g. a native build host or a Docker container" echo "" echo "" +GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) + # First we need to get vyos-world so we know all individual packages for VyOS -curl -L https://github.com/vyos/vyos-world/raw/current/debian/control \ +curl -L https://github.com/vyos/vyos-world/raw/$GIT_BRANCH/debian/control \ --output /tmp/vyos-world.control --retry 100 --retry-delay 1 --silent VYOS_PACKAGES=$(get_runtime_depends /tmp/vyos-world.control) @@ -89,7 +91,7 @@ do fi CTRLFILE=/tmp/$pkg.control - curl -L https://github.com/vyos/$pkg/raw/current/debian/control \ + curl -L https://github.com/vyos/$pkg/raw/$GIT_BRANCH/debian/control \ --output $CTRLFILE --retry 100 --retry-delay 1 --silent declare -a array -- cgit v1.2.3