libfetchers: fix trivial switcheroo of FileInputScheme and TarballInputScheme

These are only called when registering the schemes, so reordering them
to the previous order should ensure identical behaviour.

Change-Id: I12ea0e18e6dc897a91ad20cea3a765c0b96ae85e
This commit is contained in:
Jade Lovelace
2025-01-24 19:18:18 +00:00
committed by jade
parent 523bd9dce8
commit 478699829a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,8 +19,8 @@ void initLibFetchers()
{
registerInputScheme(makeIndirectInputScheme());
registerInputScheme(makePathInputScheme());
registerInputScheme(makeFileInputScheme());
registerInputScheme(makeTarballInputScheme());
registerInputScheme(makeFileInputScheme());
registerInputScheme(makeGitInputScheme());
registerInputScheme(makeMercurialInputScheme());
registerInputScheme(makeGitHubInputScheme());
+2 -2
View File
@@ -310,12 +310,12 @@ struct TarballInputScheme : CurlInputScheme
std::unique_ptr<InputScheme> makeFileInputScheme()
{
return std::make_unique<TarballInputScheme>();
return std::make_unique<FileInputScheme>();
}
std::unique_ptr<InputScheme> makeTarballInputScheme()
{
return std::make_unique<FileInputScheme>();
return std::make_unique<TarballInputScheme>();
}
}