[disco/master-next 2/9] UBUNTU: [Packaging] dkms-build: do not redownload files on subsequent passes

Andy Whitcroft apw at canonical.com
Tue Mar 12 15:57:12 UTC 2019


When we already have a download for a specific .deb from a previous pass
detect this and avoid re-downloading it.

BugLink: http://bugs.launchpad.net/bugs/1764792
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 debian/scripts/dkms-build | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/scripts/dkms-build b/debian/scripts/dkms-build
index 71351a58a17b..aede826b40b4 100755
--- a/debian/scripts/dkms-build
+++ b/debian/scripts/dkms-build
@@ -45,6 +45,13 @@ do
 			}
 		    ')
 		do
+			for lpackage_path in "$lpackage"_*.deb
+			do
+				break
+			done
+			if [ -f "$lpackage_path" ]; then
+				break
+			fi
 			url="$pool/$package_path"
 			wget "$url" && break || true
 			# No components in PPAs.
-- 
2.20.1




More information about the kernel-team mailing list