mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-24 22:06:59 +01:00
Renamed UpdateType NewRetail to Legacy.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
fc98eed16b
commit
8b107c86e8
@ -111,7 +111,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
var wizardMode = PatchingWizard_SelectPatchPage.WizardMode;
|
||||
var wizardIsInAutomatedUpdatesMode = wizardMode == WizardMode.AutomatedUpdates;
|
||||
|
||||
var updateType = wizardIsInAutomatedUpdatesMode ? UpdateType.NewRetail : PatchingWizard_SelectPatchPage.SelectedUpdateType;
|
||||
var updateType = wizardIsInAutomatedUpdatesMode ? UpdateType.Legacy : PatchingWizard_SelectPatchPage.SelectedUpdateType;
|
||||
var newPatch = wizardIsInAutomatedUpdatesMode ? null : PatchingWizard_SelectPatchPage.SelectedNewPatch;
|
||||
var existPatch = wizardIsInAutomatedUpdatesMode ? null : PatchingWizard_SelectPatchPage.SelectedExistingPatch;
|
||||
var alertPatch = wizardIsInAutomatedUpdatesMode ? null : PatchingWizard_SelectPatchPage.SelectedUpdateAlert;
|
||||
@ -186,7 +186,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
}
|
||||
else if (prevPageType == typeof(PatchingWizard_UploadPage))
|
||||
{
|
||||
if (PatchingWizard_SelectPatchPage.SelectedUpdateType == UpdateType.NewRetail)
|
||||
if (PatchingWizard_SelectPatchPage.SelectedUpdateType == UpdateType.Legacy)
|
||||
{
|
||||
PatchingWizard_SelectPatchPage.SelectedUpdateType = UpdateType.Existing;
|
||||
PatchingWizard_SelectPatchPage.SelectedExistingPatch = PatchingWizard_UploadPage.Patch;
|
||||
|
@ -87,7 +87,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
|
||||
switch (SelectedUpdateType)
|
||||
{
|
||||
case UpdateType.NewRetail:
|
||||
case UpdateType.Legacy:
|
||||
case UpdateType.Existing:
|
||||
ManualTextInstructions = ModePoolPatch(out someHostMayRequireRestart);
|
||||
automaticDisabled = anyPoolForbidsAutostart && someHostMayRequireRestart;
|
||||
|
@ -248,7 +248,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
}
|
||||
else //legacy format
|
||||
{
|
||||
SelectedUpdateType = UpdateType.NewRetail;
|
||||
SelectedUpdateType = UpdateType.Legacy;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -256,7 +256,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
if (WizardHelpers.IsValidFile(fileName))
|
||||
{
|
||||
if (fileName.EndsWith("." + Branding.Update))
|
||||
SelectedUpdateType = UpdateType.NewRetail;
|
||||
SelectedUpdateType = UpdateType.Legacy;
|
||||
else if (fileName.EndsWith("." + Branding.UpdateIso))
|
||||
SelectedUpdateType = UpdateType.ISO;
|
||||
else
|
||||
@ -465,13 +465,13 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
{
|
||||
if (downloadUpdateRadioButton.Checked)
|
||||
{
|
||||
return SelectedUpdateType == UpdateType.NewRetail || SelectedUpdateType == UpdateType.ISO
|
||||
return SelectedUpdateType == UpdateType.Legacy || SelectedUpdateType == UpdateType.ISO
|
||||
? ((PatchGridViewRow) dataGridViewPatches.SelectedRows[0]).PathPatch
|
||||
: null;
|
||||
}
|
||||
else if (selectFromDiskRadioButton.Checked)
|
||||
{
|
||||
return SelectedUpdateType == UpdateType.NewRetail || SelectedUpdateType == UpdateType.ISO
|
||||
return SelectedUpdateType == UpdateType.Legacy || SelectedUpdateType == UpdateType.ISO
|
||||
? WizardHelpers.IsValidFile(unzippedUpdateFilePath) &&
|
||||
Path.GetExtension(FilePath).ToLowerInvariant().Equals(".zip")
|
||||
? unzippedUpdateFilePath
|
||||
@ -762,5 +762,5 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
#endregion
|
||||
}
|
||||
|
||||
public enum UpdateType { NewRetail, Existing, ISO}
|
||||
public enum UpdateType { Legacy, Existing, ISO}
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
|
||||
switch (SelectedUpdateType)
|
||||
{
|
||||
case UpdateType.NewRetail:
|
||||
case UpdateType.Legacy:
|
||||
case UpdateType.Existing:
|
||||
if (Helpers.ElyOrGreater(host))
|
||||
{
|
||||
|
@ -204,7 +204,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
AsyncAction action = null;
|
||||
switch (SelectedUpdateType)
|
||||
{
|
||||
case UpdateType.NewRetail:
|
||||
case UpdateType.Legacy:
|
||||
if (CanUploadUpdateOnHost(SelectedNewPatchPath, selectedServer))
|
||||
{
|
||||
bool deleteFileOnCancel = AllDownloadedPatches.ContainsValue(SelectedNewPatchPath);
|
||||
@ -295,7 +295,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
AsyncAction action = null;
|
||||
switch (SelectedUpdateType)
|
||||
{
|
||||
case UpdateType.NewRetail:
|
||||
case UpdateType.Legacy:
|
||||
if (CanUploadUpdateOnHost(SelectedNewPatchPath, master))
|
||||
action = new CheckDiskSpaceForPatchUploadAction(master, SelectedNewPatchPath, true);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user