bug#23979: [ER] guix gc should tell how much space it recovered

2016-07-16 Thread Vincent Legoll
Here is an attempt: https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00574.html I tried to use call-with-values, but couldn't make it to work so reverted back to let-values... To test, I added (guix-gc "-C") at the end of the script and ran "guix pull && guile gc.scm", looked OK... --

bug#23979: [ER] guix gc should tell how much space it recovered

2016-07-15 Thread Ludovic Courtès
Andreas Enge skribis: > On Fri, Jul 15, 2016 at 04:33:46PM +0200, Ludovic Courtès wrote: >> This code calls the ‘collect-garbage’ procedure, defined in (guix >> store). You’ll see that this procedure returns two values, which are >> currently ignored: the name of the items that

bug#23979: [ER] guix gc should tell how much space it recovered

2016-07-15 Thread Andreas Enge
On Fri, Jul 15, 2016 at 04:33:46PM +0200, Ludovic Courtès wrote: > This code calls the ‘collect-garbage’ procedure, defined in (guix > store). You’ll see that this procedure returns two values, which are > currently ignored: the name of the items that were removed from the > store, and the number

bug#23979: [ER] guix gc should tell how much space it recovered

2016-07-15 Thread Ludovic Courtès
Vincent Legoll skribis: > It already shows: > note: currently hard linking saves 485.41 MiB > > Recovered disk space would nicely complement that. Indeed. > Looks like I helped myself out of step 1: > this is in guix/scripts/gc.scm if I'm not mistaken Yep, you’re on

bug#23979: [ER] guix gc should tell how much space it recovered

2016-07-14 Thread Vincent Legoll
It already shows: note: currently hard linking saves 485.41 MiB Recovered disk space would nicely complement that. I could be mentored to do it myself, but I'm very new to guile & guix ;-) I'd at least require high level directions as to where I should look (in the code) to graft that