Skip to content

Commit

Permalink
Auto-remove damaged implementations when verifying in batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Aug 18, 2024
1 parent 739d091 commit 3799bb6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Store/Implementations/ImplementationStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void Verify(ManifestDigest manifestDigest)
Log.Info(ex.LongMessage);
if (handler.Ask(
question: string.Format(Resources.ImplementationDamaged + Environment.NewLine + Resources.ImplementationDamagedAskRemove, ex.ExpectedDigest),
defaultAnswer: false, alternateMessage: string.Format(Resources.ImplementationDamaged + Environment.NewLine + Resources.ImplementationDamagedBatchInformation, ex.ExpectedDigest)))
defaultAnswer: true, alternateMessage: string.Format(Resources.ImplementationDamaged + Environment.NewLine + Resources.ImplementationDamagedBatchInformation, ex.ExpectedDigest)))
Remove(new(ex.ExpectedDigest));
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Store/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Store/Properties/Resources.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ Führen Sie '0install config feed_mirror default' aus, um ihn zu aktivieren.</va
<comment>Manually overriden.</comment>
</data>
<data name="ImplementationDamagedAskRemove" xml:space="preserve">
<value>Möchten Sie sie entfernen? Eine neue Kopie wird bei Bedarf automatisch heruntergeladen.</value>
<value>Möchten Sie die Implementierung entfernen? Eine neue Kopie wird bei Bedarf automatisch heruntergeladen.</value>
<comment>Manually overriden.</comment>
</data>
<data name="ImplementationDamagedBatchInformation" xml:space="preserve">
<value>Führen Sie '0install store remove {0}' aus, um sie zu entfernen. Eine neue Kopie wird bei Bedarf automatisch heruntergeladen.</value>
<value>Die Implementierung wurde entfernt. Eine neue Kopie wird bei Bedarf automatisch heruntergeladen.</value>
<comment>Manually overriden.</comment>
</data>
<data name="ImplementationNotFound" xml:space="preserve">
Expand Down
4 changes: 2 additions & 2 deletions src/Store/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ Run '0install config feed_mirror default' to enable it.</value>
<value>The implementation '{0}' is damaged.</value>
</data>
<data name="ImplementationDamagedAskRemove" xml:space="preserve">
<value>Do you want to remove it? A new copy will be automatically downloaded again when needed.</value>
<value>Do you want to remove the implementation? A new copy will be automatically downloaded again when needed.</value>
</data>
<data name="ImplementationDamagedBatchInformation" xml:space="preserve">
<value>Run '0install store remove {0}' to remove it. A new copy will be automatically downloaded again when needed.</value>
<value>The implementation has been removed. A new copy will be automatically downloaded again when needed.</value>
</data>
<data name="ImplementationNotFound" xml:space="preserve">
<value>The implementation '{0}' could not be located.</value>
Expand Down

0 comments on commit 3799bb6

Please sign in to comment.