diff options
author | Steve Kolenich <kolenichsj@tutanota.com> | 2021-09-01 23:00:01 +0300 |
---|---|---|
committer | Steve Kolenich <kolenichsj@tutanota.com> | 2021-09-01 23:00:01 +0300 |
commit | a4bee8a329c5c8880c81c22631e600f2aba35415 (patch) | |
tree | 2c6684fd1e05dced17cc6e3a8b4b4e44d283b288 /include/functions | |
parent | 798c1054d7ac5ee6df6a2cbbdbb100545a3892f7 (diff) |
Added two tests using apk (Alpine Package Keeper) to check for
installed packages and packages that can be upgraded
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions b/include/functions index 6c4d76c7..39fd9c15 100644 --- a/include/functions +++ b/include/functions @@ -2090,6 +2090,9 @@ elif [ -n "${XBPSBINARY}" ]; then output=$(${XBPSBINARY} ${package} 2> /dev/null | ${GREPBINARY} "^ii") exit_code=$? + elif [ -n "${APKBINARY}" ]; then + output=$(${APKBINARY} search ${package} 2> /dev/null | ${GREPBINARY} ${package}) + exit_code=$? else if [ "${package}" != "__dummy__" ]; then ReportException "PackageIsInstalled:01 (test=${TEST_NO:-unknown})" |