From 6ffc22e0465ea25532f442048ae0ce454aa772bf Mon Sep 17 00:00:00 2001 From: Tim Pepper Date: Tue, 23 Aug 2016 16:38:01 -0700 Subject: [PATCH] osprepare: less redundant function name While we're early I hope nobody hollers too loudly at me for destroying the API...but I think this reads more cleanly. Signed-off-by: Tim Pepper --- ciao-scheduler/scheduler.go | 2 +- osprepare/main.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ciao-scheduler/scheduler.go b/ciao-scheduler/scheduler.go index 85c49ed6f..e1e1c18c0 100644 --- a/ciao-scheduler/scheduler.go +++ b/ciao-scheduler/scheduler.go @@ -1021,7 +1021,7 @@ func configSchedulerServer() (sched *ssntpSchedulerServer) { func main() { flag.Parse() - osprepare.PrepareOsDeps(schedDeps) + osprepare.InstallDeps(schedDeps) sched := configSchedulerServer() if sched == nil { diff --git a/osprepare/main.go b/osprepare/main.go index 9047dba58..a3b95b28f 100644 --- a/osprepare/main.go +++ b/osprepare/main.go @@ -86,9 +86,9 @@ func collectPackages(dist distro, reqs PackageRequirements) []string { return nil } -// PrepareOsDeps installs all the dependencies defined in a component +// InstallDeps installs all the dependencies defined in a component // specific PackageRequirements in order to enable running the component -func PrepareOsDeps(reqs PackageRequirements) { +func InstallDeps(reqs PackageRequirements) { distro := getDistro() if distro == nil { @@ -114,5 +114,5 @@ func PrepareOsDeps(reqs PackageRequirements) { // Bootstrap installs all the core dependencies required to bootstrap the core // configuration of all Ciao components func Bootstrap() { - PrepareOsDeps(BootstrapRequirements) + InstallDeps(BootstrapRequirements) }