From ebbdf079eb68b3fcdf7dcd635ba7747ffb25091c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 Apr 2020 14:09:12 +0200 Subject: [nvidia-common] Don't redownload supportedchips.html all the time --- core/modules/nvidia-common/module.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/modules') diff --git a/core/modules/nvidia-common/module.build b/core/modules/nvidia-common/module.build index c402f5d2..cf648656 100644 --- a/core/modules/nvidia-common/module.build +++ b/core/modules/nvidia-common/module.build @@ -32,7 +32,9 @@ build() { pdebug "Unpacking NVidia-Installer ..." [ -d "$destdir" ] && rm -rf "$destdir" sh "$bundle" --extract-only --target "$destdir" || perror "Could not extract $bundle to $destdir." - download "${REQUIRED_HTML//%VERSION%/$version}" "$builddir/supportedchips.html" + if ! [ -s "$builddir/supportedchips.html" ]; then + download "${REQUIRED_HTML//%VERSION%/$version}" "$builddir/supportedchips.html" + fi local KMOD_ERROR="(ERROR: The nvidia kernel module was not created.|.ko failed to build)" local KMOD_LOG="/var/log/nvidia-installer.kmod.log" pinfo "Ready to chroot - may take some time." -- cgit v1.2.3-55-g7522