aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-14 19:57:45 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-09-14 19:57:45 +0200
commitf359b9981ba3d81e33981018c4bcb83ab45830a3 (patch)
treeb2bda62ae22e015bf873c30a793c0896b6bdce23 /src/libstore
parent229ad612b8d678deee6c5077ff5a5f0b0085bd9e (diff)
Generations -> profile versions
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/profiles.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstore/profiles.cc b/src/libstore/profiles.cc
index 9959da535..aca0ea5ad 100644
--- a/src/libstore/profiles.cc
+++ b/src/libstore/profiles.cc
@@ -126,9 +126,9 @@ void deleteGeneration(const Path & profile, GenerationNumber gen)
static void deleteGeneration2(const Path & profile, GenerationNumber gen, bool dryRun)
{
if (dryRun)
- printInfo(format("would remove generation %1%") % gen);
+ printInfo(format("would remove profile version %1%") % gen);
else {
- printInfo(format("removing generation %1%") % gen);
+ printInfo(format("removing profile version %1%") % gen);
deleteGeneration(profile, gen);
}
}
@@ -142,7 +142,7 @@ void deleteGenerations(const Path & profile, const std::set<GenerationNumber> &
auto [gens, curGen] = findGenerations(profile);
if (gensToDelete.count(*curGen))
- throw Error("cannot delete current generation of profile %1%'", profile);
+ throw Error("cannot delete current version of profile %1%'", profile);
for (auto & i : gens) {
if (!gensToDelete.count(i.number)) continue;
@@ -254,12 +254,12 @@ void switchGeneration(
if (!dst) {
if (dstGen)
- throw Error("generation %1% does not exist", *dstGen);
+ throw Error("profile version %1% does not exist", *dstGen);
else
- throw Error("no generation older than the current (%1%) exists", curGen.value_or(0));
+ throw Error("no profile version older than the current (%1%) exists", curGen.value_or(0));
}
- notice("switching from generation %d to %d", curGen.value_or(0), dst->number);
+ notice("switching profile from version %d to %d", curGen.value_or(0), dst->number);
if (dryRun) return;