Patchwork [2/5] system: Rename previous-grub-entries to profile-grub-entries.

login
register
mail settings
Submitter Chris Marusich
Date Nov. 2, 2016, 5:48 a.m.
Message ID <20161102054815.11253-3-cmmarusich@gmail.com>
Download mbox | patch
Permalink /patch/17092/
State New
Headers show

Comments

Chris Marusich - Nov. 2, 2016, 5:48 a.m.
From: Chris Marusich <cmmarusich@gmail.com>

* guix/scripts/system.scm (previous-grub-entries, profile-grub-entries):
Rename previous-grub-entries to profile-grub-entries to indicate that it is
stateful and returns the entries for all profile generations, not just the
previous ones.  Update all callers.
---
 guix/scripts/system.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Ludovic Court├Ęs - Nov. 6, 2016, 4:56 p.m.
cmmarusich@gmail.com skribis:

> From: Chris Marusich <cmmarusich@gmail.com>
>
> * guix/scripts/system.scm (previous-grub-entries, profile-grub-entries):
> Rename previous-grub-entries to profile-grub-entries to indicate that it is
> stateful and returns the entries for all profile generations, not just the
> previous ones.  Update all callers.

Applied!

Patch

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index e548be6..eee4422 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -366,7 +366,7 @@  it atomically, and then run OS's activation script."
     (date->string (time-utc->date time)
                   "~Y-~m-~d ~H:~M")))
 
-(define* (previous-grub-entries #:optional (profile %system-profile))
+(define* (profile-grub-entries #:optional (profile %system-profile))
   "Return a list of 'menu-entry' for the generations of PROFILE."
   (define (system->grub-entry system number time)
     (unless-file-not-found
@@ -563,7 +563,7 @@  building anything."
                       (operating-system-grub.cfg os
                                                  (if (eq? 'init action)
                                                      '()
-                                                     (previous-grub-entries)))))
+                                                     (profile-grub-entries)))))
 
        ;; For 'init' and 'reconfigure', always build GRUB.CFG, even if
        ;; --no-grub is passed, because GRUB.CFG because we then use it as a GC