Move package_manager() to its own file

This commit is contained in:
Juno Takano 2024-07-10 17:22:50 -03:00
parent c3d53a92b2
commit 1523ea9032
3 changed files with 5 additions and 7 deletions

View file

@ -39,3 +39,7 @@ scan_packages() {
resolve_packages
fi
}
get_user_packages() {
cat "$CONFIG_ROOT/packages" | sort | uniq
}

View file

@ -1,6 +1,6 @@
. "$TORI_ROOT/src/check.sh"
. "$TORI_ROOT/src/configuration.sh"
. "$TORI_ROOT/src/package/package.sh"
. "$TORI_ROOT/src/package/package_manager.sh"
. "$TORI_ROOT/src/package/package_resolution.sh"
. "$TORI_ROOT/src/utility.sh"
. "$TORI_ROOT/src/system.sh"

View file

@ -1,9 +1,3 @@
# package management functions
get_user_packages() {
cat $CONFIG_ROOT/packages | sort | uniq
}
package_manager() {
local command="$1"
local output