Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 8fcd186

Browse files
committed
fix restore command
1 parent a7acd07 commit 8fcd186

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Rune.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<RootNamespace>Rune.CLI</RootNamespace>
88
<ApplicationIcon>resource\icon.ico</ApplicationIcon>
99
<StartupObject></StartupObject>
10-
<Version>0.70.556-beta</Version>
10+
<Version>0.70.557-beta</Version>
1111
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1212
<PlatformTarget>x64</PlatformTarget>
1313
</PropertyGroup>
@@ -38,7 +38,7 @@
3838
</ItemGroup>
3939

4040
<ItemGroup Condition="$(Configuration) == 'Debug'">
41-
<PackageReference Include="Ivy.Versioning" Version="3.1.0.1">
41+
<PackageReference Include="Ivy.Versioning" Version="3.1.0">
4242
<PrivateAssets>all</PrivateAssets>
4343
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4444
</PackageReference>

src/cmd/RestoreCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public async Task<int> Execute(CommandOption registryOption)
3838
if (!this.Validate(dir))
3939
return 1;
4040
var indexer = Indexer.FromLocal().UseLock();
41-
foreach (var package in AncientProject.FromLocal().deps.Cast<string>().Where(package => !indexer.Exist(package)))
41+
foreach (var package in AncientProject.FromLocal().deps.Select(x => x.Key).Where(package => !indexer.Exist(package)))
4242
{
4343
if(!await Registry.By(registry).Exist(package))
4444
{
@@ -68,7 +68,7 @@ public async Task<int> Execute(CommandOption registryOption)
6868
continue;
6969
}
7070
}
71-
return 0;
71+
return await Success();
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)