summaryrefslogtreecommitdiff
path: root/src/util.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.sh')
-rw-r--r--src/util.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.sh b/src/util.sh
index 2b7044c..f92e4e3 100644
--- a/src/util.sh
+++ b/src/util.sh
@@ -86,14 +86,14 @@ prompt_question () {
# return if a package is present on the system or not
#
is_installed() {
- [ -f "${INSTALLED_DIR}/$1/checksum" ]
+ [ -f "${SYSROOT}${INSTALLED_DIR}/$1/checksum" ]
}
# get the installed checksum of a package ($1)
#
get_installed_version () {
local name=$1
- local file="${INSTALLED_DIR}/$name/checksum"
+ local file="${SYSROOT}${INSTALLED_DIR}/$name/checksum"
[ -f $file ] &&
cat $file
}