From e8c62763d02b18a106e7c385a4dfc1ac026449ee Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 18 May 2020 12:46:55 +0300 Subject: mkrootfs: check install package version and release to skip it --- mkrootfs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkrootfs.sh b/mkrootfs.sh index 6b065e7..967cf29 100755 --- a/mkrootfs.sh +++ b/mkrootfs.sh @@ -94,14 +94,14 @@ msg "Starting build from the PKGS variable" # shellcheck disable=2154 for pkg in $order; do - # Check if the package is already installed and skip. - kiss l "$pkg" >/dev/null 2>&1 && continue - # Get the package directory so we can get version # and release numbers. pkgdir=$(kiss s "$pkg" | sed 1q) read -r ver rel < "$pkgdir/version" + # Check if the package is already installed and skip. + [ "$(kiss l "$pkg")" = "$pkg $ver $rel" ] && continue + # Check if a prebuild tarball exists, build the package # if it doesn't exist. # -- cgit v1.2.3