Skip to content

Commit f6024a3

Browse files
committed
Fixes in update-eng --retry.
1 parent b798e00 commit f6024a3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/PostSharp.Engineering.BuildTools/Dependencies/UpdateEngineeringCommand.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class UpdateEngineeringCommand : BaseCommand<UpdateEngineeringCommandSe
2020
{
2121
protected override bool ExecuteCore( BuildContext context, UpdateEngineeringCommandSettings settings )
2222
{
23-
if ( settings.Repeat )
23+
if ( settings.Retry )
2424
{
2525
do
2626
{
@@ -31,7 +31,7 @@ protected override bool ExecuteCore( BuildContext context, UpdateEngineeringComm
3131
return true;
3232
}
3333

34-
context.Console.WriteMessage( "Waiting for 30 seconds." );
34+
context.Console.WriteMessage( "Waiting for 30 seconds before retrying." );
3535
Thread.Sleep( TimeSpan.FromSeconds( 30 ) );
3636
}
3737
while ( true );
@@ -145,6 +145,7 @@ private ExitCode ExecuteOnce( BuildContext context )
145145
console.WriteMessage( $"Writing '{versionsFilePath}'." );
146146
versionProperties[0].Value = lastVersion;
147147
versionsFile.Save( versionsFilePath );
148+
madeAnyChange = true;
148149
}
149150
}
150151
else

src/PostSharp.Engineering.BuildTools/Dependencies/UpdateEngineeringCommandSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace PostSharp.Engineering.BuildTools.Dependencies;
77
[UsedImplicitly]
88
internal class UpdateEngineeringCommandSettings : CommonCommandSettings
99
{
10-
[Description( "Repeat until a new version is discovered." )]
11-
[CommandOption( "--repeat" )]
12-
public bool Repeat { get; init; }
10+
[Description( "Retry until a new version is discovered." )]
11+
[CommandOption( "--retry" )]
12+
public bool Retry { get; init; }
1313
}

0 commit comments

Comments
 (0)