summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-25 10:52:45 +0100
committerJulien Dessaux2024-03-25 10:52:45 +0100
commitd20734c275470d35303974767ca16c3c254dd092 (patch)
tree423ba7ee90e81327b68f0f69a8a9fa548e91a336 /pkg
parentfix(promises): fixed IfRepaired promises chaining (diff)
downloadgonf-d20734c275470d35303974767ca16c3c254dd092.tar.gz
gonf-d20734c275470d35303974767ca16c3c254dd092.tar.bz2
gonf-d20734c275470d35303974767ca16c3c254dd092.zip
chore(packages): removed useless packages list hook function and debian stdlib refactoring
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gonf.go1
-rw-r--r--pkg/packages.go4
2 files changed, 1 insertions, 4 deletions
diff --git a/pkg/gonf.go b/pkg/gonf.go
index 7a18c91..88edf9c 100644
--- a/pkg/gonf.go
+++ b/pkg/gonf.go
@@ -28,7 +28,6 @@ func Resolve() (status Status) {
case BROKEN:
return BROKEN
case REPAIRED:
- packages_list_function()
continue
}
// ----- Services ----------------------------------------------
diff --git a/pkg/packages.go b/pkg/packages.go
index 75346eb..fdce87c 100644
--- a/pkg/packages.go
+++ b/pkg/packages.go
@@ -7,7 +7,6 @@ var packages []*PackagePromise
// packages management functions
var packages_install_function func([]string) (Status, []string)
-var packages_list_function func()
var packages_update_function *CommandPromise
// ----- Init ------------------------------------------------------------------
@@ -16,9 +15,8 @@ func init() {
}
// ----- Public ----------------------------------------------------------------
-func SetPackagesConfiguration(install func([]string) (Status, []string), list func(), update *CommandPromise) {
+func SetPackagesConfiguration(install func([]string) (Status, []string), update *CommandPromise) {
packages_install_function = install
- packages_list_function = list
packages_update_function = update
}