1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:07:45 +00:00

Ports: Rename packages.db => installed.db

The /usr/Ports/packages.db will be used later for tracking available
ports by the upcoming package manager, which will use it to do search
queries, providing metadata on available ports, etc.

Ports that are installed will be registered from now on in the file of
/usr/Ports/installed.db, so that file will be used later on to allow
further management of what is actually installed on the system.
This commit is contained in:
Liav A 2023-04-22 16:09:01 +03:00 committed by Andrew Kaster
parent c53b1360d7
commit fcc3497803
3 changed files with 15 additions and 15 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
. ".hosted_defs.sh"
packagesdb="${SERENITY_INSTALL_ROOT}/usr/Ports/packages.db"
installedpackagesdb="${SERENITY_INSTALL_ROOT}/usr/Ports/installed.db"
clean=false
case "$1" in
@ -33,7 +33,7 @@ while IFS= read -r line; do
echo "ERROR: Previously installed port $port doesn't exist!"
some_failed=true
fi
done < <(grep -E "^(auto|manual)" "$packagesdb")
done < <(grep -E "^(auto|manual)" "$installedpackagesdb")
if [ "$some_failed" == false ]; then
exit 0