From dcc433de47d4bf4a27fe63bc8996e946164ae885 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 10 Sep 2004 13:32:08 +0000 Subject: * Operation `--delete-generations' to delete generations of a profile. Arguments are either generation number, or `old' to delete all non-current generations. Typical use: $ nix-env --delete-generations old $ nix-collect-garbage * istringstream -> string2Int. --- src/nix-env/profiles.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nix-env/profiles.hh') diff --git a/src/nix-env/profiles.hh b/src/nix-env/profiles.hh index 423134412748..bcd882c34c93 100644 --- a/src/nix-env/profiles.hh +++ b/src/nix-env/profiles.hh @@ -31,6 +31,8 @@ Generations findGenerations(Path profile, int & curGen); Path createGeneration(Path profile, Path outPath, Path drvPath, Path clrPath); +void deleteGeneration(const Path & profile, unsigned int gen); + void switchLink(Path link, Path target); -- cgit 1.4.1