From d9307267b3b4a87391e33daacef162745f057c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 27 Jan 2013 17:18:55 +0100 Subject: guix-package: When rolling back to nothingness, point to the empty profile. Suggested by Andreas Enge at . * guix-package.in (roll-back): Check whether PROFILE is valid using `file-exists?'. When NUMBER is zero, just emit a notice. When PREVIOUS-NUMBER is zero and PREVIOUS-PROFILE does not exist, build the empty profile, and link to it. * tests/guix-package.sh: Add tests. * doc/guix.texi (Invoking guix-package): Document the new behavior. --- doc/guix.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index e1ca095daa..1385cd4532 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -509,6 +509,11 @@ the last transaction. When combined with options such as @code{--install}, roll back occurs before any other actions. +When rolling back from the first generation that actually contains +installed packages, the profile is made to point to the @dfn{empty +profile}, also known as @dfn{profile zero}---i.e., it contains no files +apart from its own meta-data. + @item --profile=@var{profile} @itemx -p @var{profile} Use @var{profile} instead of the user's default profile. -- cgit v1.2.3