summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ob-checkbuilddeps.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ob-checkbuilddeps.sh b/src/ob-checkbuilddeps.sh
index 1bfbe7f..0621111 100644
--- a/src/ob-checkbuilddeps.sh
+++ b/src/ob-checkbuilddeps.sh
@@ -1,6 +1,6 @@
# Make sure that package build dependencies are installed
#
-# Copyright (C) 2012, 2014 Patrick McDermott
+# Copyright (C) 2012, 2014, 2019 Patrick McDermott
#
# This file is part of opkbuild.
#
@@ -28,10 +28,10 @@ compare_versions()
local dep_ver="${3}"
shift 3
- # "Classic" (now Yocto) opkg returns 1 on a true comparison and 0 on a
- # false comparison. opkg-lede reversed this in commit 93de62b. Compare
- # the compare-versions exit status with a reference exit status from a
- # true statement (1 << 2).
+ # Older versions of opkg return 1 on a true comparison and 0 on a false
+ # comparison. "Classic"/Yocto opkg commit d55020a (opkg-lede commit
+ # 93de62b) reversed this. Compare the compare-versions exit status with
+ # a reference exit status from a true statement (1 << 2).
! "${OPKG}" compare-versions "${pkg_ver}" "${dep_rel}" "${dep_ver}"
# The "-e" setting is ignored while executing anything, including
# commands in a function, within the context of the condition of an "if"