Skip to content

Commit f800970

Browse files
committed
Fix copilot commit for container registry
1 parent a4730af commit f800970

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/code/ContainerRegistryServerAPICalls.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ public override Stream InstallPackage(string packageName, string packageVersion,
343343
Stream results = new MemoryStream();
344344
if (string.IsNullOrEmpty(packageVersion))
345345
{
346-
errRecord = new ErrorRecord(
347346
exception: new ArgumentNullException($"Package version could not be found for {packageName}"),
348347
"PackageVersionNullOrEmptyError",
349348
ErrorCategory.InvalidArgument,
@@ -381,7 +380,7 @@ public override Task<Stream> InstallPackageAsync(string packageName, string pack
381380
}
382381

383382
string packageNameForInstall = PrependMARPrefix(packageName);
384-
results = InstallVersion(packageNameForInstall, packageVersion, errorMsgs, debugMsgs, verboseMsgs);
383+
results = InstallVersionAsync(packageNameForInstall, packageVersion, errorMsgs, debugMsgs, verboseMsgs);
385384
return Task.FromResult(results);
386385
}
387386

@@ -457,14 +456,14 @@ private Stream InstallVersion(
457456
/// Installs a package with version specified using concurrent queues for output instead of cmdlet streams.
458457
/// Used by the async install path to avoid cross-thread cmdlet stream writes.
459458
/// </summary>
460-
private Stream InstallVersion(
459+
private Stream InstallVersionAsync(
461460
string packageName,
462461
string packageVersion,
463462
ConcurrentQueue<ErrorRecord> errorMsgs,
464463
ConcurrentQueue<string> debugMsgs,
465464
ConcurrentQueue<string> verboseMsgs)
466465
{
467-
debugMsgs.Enqueue("In ContainerRegistryServerAPICalls::InstallVersion()");
466+
debugMsgs.Enqueue("In ContainerRegistryServerAPICalls::InstallVersionAsync()");
468467
string packageNameLowercase = packageName.ToLower();
469468
string tempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
470469
try

0 commit comments

Comments
 (0)