Skip to content

Commit 9fc8472

Browse files
committed
remove drive
1 parent 3d12375 commit 9fc8472

3 files changed

Lines changed: 5 additions & 30 deletions

File tree

src/c#/GeneralUpdate.Core/Configuration/GlobalConfigInfo.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@ public class GlobalConfigInfo : BaseConfigInfo
9595
/// </summary>
9696
public string ProcessInfo { get; set; }
9797

98-
/// <summary>
99-
/// Indicates whether driver update functionality is enabled.
100-
/// Computed from UpdateOption.Drive or defaults to false.
101-
/// </summary>
102-
public bool? DriveEnabled { get; set; }
103-
10498
/// <summary>
10599
/// Directory path containing driver files for update.
106100
/// Used when DriveEnabled is true to locate driver files for installation.

src/c#/GeneralUpdate.Core/Strategy/LinuxStrategy.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,18 @@ public class LinuxStrategy : AbstractStrategy
1111
{
1212
protected override PipelineContext CreatePipelineContext(VersionInfo version, string patchPath)
1313
{
14-
GeneralTracer.Info($"GeneralUpdate.Core.LinuxStrategy.CreatePipelineContext: building context for version={version.Version}, patchPath={patchPath}, driveEnabled={_configinfo.DriveEnabled}");
14+
GeneralTracer.Info($"GeneralUpdate.Core.LinuxStrategy.CreatePipelineContext: building context for version={version.Version}, patchPath={patchPath}");
1515
var context = base.CreatePipelineContext(version, patchPath);
16-
17-
// Driver middleware (Linux-specific)
18-
if (_configinfo.DriveEnabled == true)
19-
{
20-
context.Add("DriverDirectory", _configinfo.DriverDirectory);
21-
GeneralTracer.Info($"GeneralUpdate.Core.LinuxStrategy.CreatePipelineContext: driver update enabled, DriverDirectory={_configinfo.DriverDirectory}");
22-
}
23-
2416
return context;
2517
}
2618

2719
protected override PipelineBuilder BuildPipeline(PipelineContext context)
2820
{
29-
GeneralTracer.Info($"GeneralUpdate.Core.LinuxStrategy.BuildPipeline: assembling middleware pipeline. PatchEnabled={_configinfo.PatchEnabled}, DriveEnabled={_configinfo.DriveEnabled}");
21+
GeneralTracer.Info($"GeneralUpdate.Core.LinuxStrategy.BuildPipeline: assembling middleware pipeline. PatchEnabled={_configinfo.PatchEnabled}");
3022
var builder = new PipelineBuilder(context)
3123
.UseMiddlewareIf<PatchMiddleware>(_configinfo.PatchEnabled)
3224
.UseMiddleware<CompressMiddleware>()
3325
.UseMiddleware<HashMiddleware>();
34-
// DrivelutionMiddleware: add GeneralUpdate.Drivelution project reference to enable
3526
return builder;
3627
}
3728

src/c#/GeneralUpdate.Core/Strategy/WindowsStrategy.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,17 @@ public class WindowsStrategy : AbstractStrategy
1515
{
1616
protected override PipelineContext CreatePipelineContext(VersionInfo version, string patchPath)
1717
{
18-
GeneralTracer.Info($"GeneralUpdate.Core.WindowsStrategy.CreatePipelineContext: building context for version={version.Version}, patchPath={patchPath}, driveEnabled={_configinfo.DriveEnabled}");
19-
var context = base.CreatePipelineContext(version, patchPath);
20-
21-
// Driver middleware (Windows-specific)
22-
if (_configinfo.DriveEnabled == true)
23-
{
24-
context.Add("DriverDirectory", _configinfo.DriverDirectory);
25-
GeneralTracer.Info($"GeneralUpdate.Core.WindowsStrategy.CreatePipelineContext: driver update enabled, DriverDirectory={_configinfo.DriverDirectory}");
26-
}
27-
28-
return context;
18+
GeneralTracer.Info($"GeneralUpdate.Core.WindowsStrategy.CreatePipelineContext: building context for version={version.Version}, patchPath={patchPath}");
19+
return base.CreatePipelineContext(version, patchPath);
2920
}
3021

3122
protected override PipelineBuilder BuildPipeline(PipelineContext context)
3223
{
33-
GeneralTracer.Info($"GeneralUpdate.Core.WindowsStrategy.BuildPipeline: assembling middleware pipeline. PatchEnabled={_configinfo.PatchEnabled}, DriveEnabled={_configinfo.DriveEnabled}");
24+
GeneralTracer.Info($"GeneralUpdate.Core.WindowsStrategy.BuildPipeline: assembling middleware pipeline. PatchEnabled={_configinfo.PatchEnabled}");
3425
var builder = new PipelineBuilder(context)
3526
.UseMiddlewareIf<PatchMiddleware>(_configinfo.PatchEnabled)
3627
.UseMiddleware<CompressMiddleware>()
3728
.UseMiddleware<HashMiddleware>();
38-
// DrivelutionMiddleware: add GeneralUpdate.Drivelution project reference to enable
3929
return builder;
4030
}
4131

0 commit comments

Comments
 (0)