diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-18 12:46:55 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-18 12:46:55 +0300 |
commit | e8c62763d02b18a106e7c385a4dfc1ac026449ee (patch) | |
tree | 701a8333343363cd916ceb3830a4ab1877e23166 | |
parent | 1badd68f39d7e5d3dfe0dc736d9251e68a72b2fe (diff) | |
download | mkrootfs-e8c62763d02b18a106e7c385a4dfc1ac026449ee.tar.gz |
mkrootfs: check install package version and release to skip it
-rwxr-xr-x | mkrootfs.sh | 6 |
1 files 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. # |