package.scm: (profile-derivation (%store) '())

2013-09-20 Thread Nikita Karetnikov
I’d like to know how ‘roll-back’ creates an empty generation because it’s necessary to do the same for ‘--delete-generations’. However, I fail to understand how (profile-derivation (%store) ‘()) works (or any other function that uses (%store)). I assume that some code should set ‘%store’ to

Re: package.scm: (profile-derivation (%store) '())

2013-09-20 Thread Ludovic Courtès
Nikita Karetnikov nik...@karetnikov.org skribis: I’d like to know how ‘roll-back’ creates an empty generation because it’s necessary to do the same for ‘--delete-generations’. However, I fail to understand how (profile-derivation (%store) ‘()) works (or any other function that uses

Re: package.scm: (profile-derivation (%store) '())

2013-09-20 Thread Ludovic Courtès
Nikita Karetnikov nik...@karetnikov.org skribis: ‘%store’ is a SRFI-39 parameter (info (guile) Parameters), aka. a dynamically-scoped variable. It is initialized with the ‘parameterize’ form, which sets its value for the dynamic extent of its body. I don’t understand what code initializes

Re: package.scm: (profile-derivation (%store) '())

2013-09-20 Thread Nikita Karetnikov
‘%store’ is a SRFI-39 parameter (info (guile) Parameters), aka. a dynamically-scoped variable. It is initialized with the ‘parameterize’ form, which sets its value for the dynamic extent of its body. I don’t understand what code initializes ‘%store’. For example, I have one generation in