Whamcloud - gitweb
LU-16075 kernel: kernel update RHEL8.6 [4.18.0-372.19.1.el8_6]
[fs/lustre-release.git] / contrib / lbuild / lbuild
index 3f3ae98..eee667e 100755 (executable)
@@ -466,6 +466,8 @@ download_srpm() {
        local srpm=$2
        local force="${3:-false}"
 
+       [[ ! -s "$KERNELDIR/$srpm" ]] || return 0
+
        # let the download_file handle the concurrency
        if $DOWNLOAD; then
                local location
@@ -490,6 +492,9 @@ download_debuginfo_common() {
        local rpm=$1
        local force="${2:-false}"
 
+       [[ ! -s "$KERNELRPMSBASE/$lnxmaj/$DISTROMAJ/$TARGET_ARCH/$rpm" ]] ||
+               return 0
+
        # let the download_file handle the concurrency
        if $DOWNLOAD; then
                # get the location from a distro specific method if it exists