Move package_manager() to its own file
This commit is contained in:
parent
c3d53a92b2
commit
1523ea9032
3 changed files with 5 additions and 7 deletions
|
@ -39,3 +39,7 @@ scan_packages() {
|
|||
resolve_packages
|
||||
fi
|
||||
}
|
||||
|
||||
get_user_packages() {
|
||||
cat "$CONFIG_ROOT/packages" | sort | uniq
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
# package management functions
|
||||
|
||||
get_user_packages() {
|
||||
cat $CONFIG_ROOT/packages | sort | uniq
|
||||
}
|
||||
|
||||
package_manager() {
|
||||
local command="$1"
|
||||
local output
|
Loading…
Reference in a new issue