Skip to content

Commit

Permalink
Better fallback default repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Apr 12, 2024
1 parent 6ed3a14 commit 1d11749
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Repositories/RepositoryDataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public UpdateResult Update(Repository[] repos,

// Check if any ETags have changed, quit if not
user.RaiseProgress(Properties.Resources.NetRepoCheckingForUpdates, 0);
var toUpdate = repos.DefaultIfEmpty(new Repository("default", game.DefaultRepositoryURL))
var toUpdate = repos.DefaultIfEmpty(new Repository($"{game.ShortName}-{Repository.default_ckan_repo_name}",
game.DefaultRepositoryURL))
.DistinctBy(r => r.uri)
.Where(r => r.uri != null
&& (r.uri.IsFile
Expand Down

0 comments on commit 1d11749

Please sign in to comment.