From 82fe08ed207a17c51370dc90e965c15ee9db9235 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 27 Jan 2013 17:58:46 +0100 Subject: guix-package: Always use the next number for new generations. Suggested by Andreas Enge at . * guix-package.in (latest-profile-number): Remove. (switch-symlinks): New procedure. (roll-back)[switch-link]: Use it. (guix-package)[process-actions]: Always choose NUMBER + 1 for the new profile. Use `switch-symlinks' instead of `symlink'. Remove code to delete PROFILE when it exists since `switch-symlinks' has the same effect. * tests/guix-package.sh: Adjust existing `--roll-back' tests. * doc/guix.texi (Invoking guix-package): Document this `--roll-back' behavior. --- doc/guix.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/guix.texi') diff --git a/doc/guix.texi b/doc/guix.texi index 1385cd4532..52c992044b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -514,6 +514,10 @@ 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. +Installing, removing, or upgrading packages from a generation that has +been rolled back to overwrites previous future generations. Thus, the +history of a profile's generations is always linear. + @item --profile=@var{profile} @itemx -p @var{profile} Use @var{profile} instead of the user's default profile. -- cgit v1.2.3