aboutsummaryrefslogtreecommitdiff
path: root/mkrootfs.sh
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-18 12:46:55 +0300
committerCem Keylan <cem@ckyln.com>2020-05-18 12:46:55 +0300
commite8c62763d02b18a106e7c385a4dfc1ac026449ee (patch)
tree701a8333343363cd916ceb3830a4ab1877e23166 /mkrootfs.sh
parent1badd68f39d7e5d3dfe0dc736d9251e68a72b2fe (diff)
downloadmkrootfs-e8c62763d02b18a106e7c385a4dfc1ac026449ee.tar.gz
mkrootfs: check install package version and release to skip it
Diffstat (limited to 'mkrootfs.sh')
-rwxr-xr-xmkrootfs.sh6
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.
#