diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-22 18:57:21 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-01-22 18:57:21 +0100 |
commit | a2580d735bfb180e4e8d986e65bfb655e1c551f9 (patch) | |
tree | c19a1da79281395992f9bc0e65dbd91378022d44 /scripts/list-build-dependencies | |
parent | b7536e4b3699c1fd9f4338981111583e85cef662 (diff) | |
download | vyos-build-a2580d735bfb180e4e8d986e65bfb655e1c551f9.tar.gz vyos-build-a2580d735bfb180e4e8d986e65bfb655e1c551f9.zip |
list-build-dependencies: replace hardcoded branch with current branch
Diffstat (limited to 'scripts/list-build-dependencies')
-rwxr-xr-x | scripts/list-build-dependencies | 6 |
1 files changed, 4 insertions, 2 deletions
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 |