Skip to content

Commit be73e0c

Browse files
committed
Update primary index when moving package (microsoft#5204)
Fixes microsoft#5202 ## Change When moving the primary package to a new location, update the index so any future attempts to reference it target the correct location.
1 parent 1122b32 commit be73e0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AppInstallerRepositoryCore/CompositeSource.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,7 @@ namespace AppInstaller::Repository
12991299
{
13001300
currentMatch.Package = std::move(Matches[latestPrimaryAvailable->PrimaryPackageIndex.value()].Package);
13011301
Matches[latestPrimaryAvailable->PrimaryPackageIndex.value()].Package.reset();
1302+
latestPrimaryAvailable->PrimaryPackageIndex = i;
13021303
}
13031304
continue;
13041305
}

0 commit comments

Comments
 (0)