From aec7b3c019edfdc13e4b6c71cee04d9497a98be0 Mon Sep 17 00:00:00 2001
From: Meta Vens
Date: Sun, 18 Oct 2026 18:16:27 +0200
Subject: [PATCH] product-lines tiers lists every row, present or new, before
it reports there is nothing to do
Co-Authored-By: Claude Sonnet 5.5
---
tools/AetherDb/ProductLinesCommand.cs | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/AetherDb/ProductLinesCommand.cs b/tools/AetherDb/ProductLinesCommand.cs
index 5ee316a38..2c82d5ebf 100644
--- a/tools/AetherDb/ProductLinesCommand.cs
+++ b/tools/AetherDb/ProductLinesCommand.cs
@@ -228,15 +228,15 @@ public static class ProductLinesCommand
}
var missing = resolved.Where(r => !r.Present).ToArray();
- if (missing.Length == 0)
- {
- Console.WriteLine("The tiers are already authored; nothing to do.");
- return 0;
- }
-
Console.WriteLine("Product tiers:");
foreach (var (row, parent, present) in resolved)
Console.WriteLine($" {(present ? "present" : "new ")} {row.Line} -> \"{row.Name}\" by {db.Cache.Get(parent.Manufacturer)?.ShortName}, floor {row.Floor:0.##}: {row.Description}");
+ if (missing.Length == 0)
+ {
+ Console.WriteLine("\nThe tiers are already authored; nothing to do.");
+ return 0;
+ }
+
if (!apply)
{
Console.WriteLine($"\nDry run. Pass \"apply\" to author {missing.Length} bins.");