Hello, Ludovic and happy vacations :) Alex Kost (2014-07-26 21:44 +0400) wrote: > Ludovic Courtès (2014-07-26 00:36 +0400) wrote: > > [...] > >> Namely, (guix scripts package) needs to be made more modular, and the >> generic bits must be moved to (guix profiles). Now that there’s a >> second consumer for this API, there’s more of an incentive to do it. >> >> I’m willing to help for that, but I’m happy if you give it a try. >> WDYT? > > Sure, I'll do what I can, however the quality of my try may be > unsatisfactory. Anyway I think I'll send a patch in several days. You are probably reading this a couple of weeks from now so my changes may not be actual, but anyway I'm attaching a patch with the changes. Here is what I've done: - A part of code for installing/upgrading/removing was extracted from ‘guix-package’ function (from ‘process-actions’ more precisely). So the new function (I named it ‘process-package-actions’) can be used in "guix.el". - A bit of code was placed into "profiles.scm" as ‘manifest-add’. - Also I think you forgot (?) to remove ‘deduplicate’ function in commit 4ca0b41, so I did it as well. I hope something of the above is acceptable. WDYT?