mkrootfs

Carbs rootfs generator
git clone git://git.carbslinux.org/mkrootfs
Log | Files | Refs | README | LICENSE

commit e8c62763d02b18a106e7c385a4dfc1ac026449ee
parent 1badd68f39d7e5d3dfe0dc736d9251e68a72b2fe
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 18 May 2020 12:46:55 +0300

mkrootfs: check install package version and release to skip it

Diffstat:
Mmkrootfs.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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. #