summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjakob <jernej.jakob@gmail.com>2020-03-19 13:41:38 +0100
committerJernej Jakob <jernej.jakob@gmail.com>2020-03-19 15:02:05 +0100
commitba348cc7b37380e48e16ff2c084e365432af481b (patch)
tree25bfe3ca85c791135d6591de4a00e6d32445c63b
parent7d7298661c18a3c33fd0fad56e9800f7ea2a6fe8 (diff)
downloadvyos-build-ba348cc7b37380e48e16ff2c084e365432af481b.tar.gz
vyos-build-ba348cc7b37380e48e16ff2c084e365432af481b.zip
T2085: scripts/build-packages: don't define commit='HEAD' by default
Fixes an issue where the script would always revert to a full clone.
-rwxr-xr-xscripts/build-packages2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-packages b/scripts/build-packages
index 7329a845..58778fad 100755
--- a/scripts/build-packages
+++ b/scripts/build-packages
@@ -11,7 +11,7 @@ current_working_directory = os.getcwd()
repo_root = subprocess.check_output('git rev-parse --show-toplevel', shell=True, universal_newlines=True).rstrip('\n')
repo_sha = subprocess.check_output('git rev-parse --short=12 HEAD', shell=True, universal_newlines=True).rstrip('\n')
-def add_package(name, url=None, commit='HEAD', branch='current', tag=None, shallow=True, custombuild_cmd=None):
+def add_package(name, url=None, commit=None, branch='current', tag=None, shallow=True, custombuild_cmd=None):
"""
Build up source package with URL and build commands executed during the later
called build_package step.