From 4412b0d80e9d43c10b071af16b580a3e5e8c61f8 Mon Sep 17 00:00:00 2001 From: RB Date: Thu, 3 May 2018 10:20:11 -0700 Subject: [PATCH 1/6] Update Update-AUPackages.ps1 This is a change to add a switch for not checking default http://chocolatey.org --- AU/Public/Update-AUPackages.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index 9fb81ee8..9940c86f 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -50,6 +50,7 @@ function Update-AUPackages { PushAll - Set to true to push all updated packages and not only the most recent one per folder. WhatIf - Set to true to set WhatIf option for all packages. PluginPath - Additional path to look for user plugins. If not set only module integrated plugins will work + NoCheckChocoVersion - Set to true to set NoCheckChocoVersion option for all packages. Thanks to RBZ Plugin - Any HashTable key will be treated as plugin with the same name as the option name. A script with that name will be searched for in the AU module path and user specified path. @@ -82,6 +83,7 @@ function Update-AUPackages { if (!$Options.Force) { $Options.Force = $false } if (!$Options.Push) { $Options.Push = $false } if (!$Options.PluginPath) { $Options.PluginPath = '' } + if (!$Options.NoCheckChocoVersion){ $Options.NoCheckChocoVersion = $false } # RBZ Edit Remove-Job * -force #remove any previously run jobs @@ -92,6 +94,7 @@ function Update-AUPackages { $aup = Get-AUPackages $Name Write-Host 'Updating' $aup.Length 'automatic packages at' $($startTime.ToString("s") -replace 'T',' ') $(if ($Options.Force) { "(forced)" } else {}) Write-Host 'Push is' $( if ($Options.Push) { 'enabled' } else { 'disabled' } ) + Write-Host 'NoCheckChocoVersion is' $( if ($Options.NoCheckChocoVersion) { 'enabled' } else { 'disabled' } ) # RBZ Edit if ($Options.Force) { Write-Host 'FORCE IS ENABLED. All packages will be updated' } $script_err = 0 @@ -175,6 +178,7 @@ function Update-AUPackages { $global:au_Force = $Options.Force $global:au_WhatIf = $Options.WhatIf $global:au_Result = 'pkg' + $global:au_NoCheckChocoVersion = $Options.NoCheckChocoVersion # RBZ Edit if ($Options.BeforeEach) { $s = [Scriptblock]::Create( $Options.BeforeEach ) From 8cda6d8ad5dac63b60df273e76b1ec46890b273b Mon Sep 17 00:00:00 2001 From: RB Date: Tue, 8 May 2018 11:16:55 -0700 Subject: [PATCH 2/6] Update Update-AUPackages.ps1 Removed Sig notation --- AU/Public/Update-AUPackages.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index 9940c86f..3fbbdfcf 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -50,7 +50,7 @@ function Update-AUPackages { PushAll - Set to true to push all updated packages and not only the most recent one per folder. WhatIf - Set to true to set WhatIf option for all packages. PluginPath - Additional path to look for user plugins. If not set only module integrated plugins will work - NoCheckChocoVersion - Set to true to set NoCheckChocoVersion option for all packages. Thanks to RBZ + NoCheckChocoVersion - Set to true to set NoCheckChocoVersion option for all packages. Plugin - Any HashTable key will be treated as plugin with the same name as the option name. A script with that name will be searched for in the AU module path and user specified path. @@ -83,7 +83,7 @@ function Update-AUPackages { if (!$Options.Force) { $Options.Force = $false } if (!$Options.Push) { $Options.Push = $false } if (!$Options.PluginPath) { $Options.PluginPath = '' } - if (!$Options.NoCheckChocoVersion){ $Options.NoCheckChocoVersion = $false } # RBZ Edit + if (!$Options.NoCheckChocoVersion){ $Options.NoCheckChocoVersion = $false } Remove-Job * -force #remove any previously run jobs @@ -94,7 +94,7 @@ function Update-AUPackages { $aup = Get-AUPackages $Name Write-Host 'Updating' $aup.Length 'automatic packages at' $($startTime.ToString("s") -replace 'T',' ') $(if ($Options.Force) { "(forced)" } else {}) Write-Host 'Push is' $( if ($Options.Push) { 'enabled' } else { 'disabled' } ) - Write-Host 'NoCheckChocoVersion is' $( if ($Options.NoCheckChocoVersion) { 'enabled' } else { 'disabled' } ) # RBZ Edit + Write-Host 'NoCheckChocoVersion is' $( if ($Options.NoCheckChocoVersion) { 'enabled' } else { 'disabled' } ) if ($Options.Force) { Write-Host 'FORCE IS ENABLED. All packages will be updated' } $script_err = 0 From 7645211ced4c3d123b6d63feaf20bd7706d04358 Mon Sep 17 00:00:00 2001 From: RB Date: Tue, 8 May 2018 11:17:56 -0700 Subject: [PATCH 3/6] Update Update-AUPackages.ps1 Missed a Sig Notation --- AU/Public/Update-AUPackages.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index 3fbbdfcf..90a32e7b 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -178,7 +178,7 @@ function Update-AUPackages { $global:au_Force = $Options.Force $global:au_WhatIf = $Options.WhatIf $global:au_Result = 'pkg' - $global:au_NoCheckChocoVersion = $Options.NoCheckChocoVersion # RBZ Edit + $global:au_NoCheckChocoVersion = $Options.NoCheckChocoVersion if ($Options.BeforeEach) { $s = [Scriptblock]::Create( $Options.BeforeEach ) From 67d308778e8993b05ceea3527cf278567a93f330 Mon Sep 17 00:00:00 2001 From: RB Date: Tue, 8 May 2018 11:22:27 -0700 Subject: [PATCH 4/6] Update Update-AUPackages.ps1 Added ChangeLog --- AU/Public/Update-AUPackages.ps1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index 90a32e7b..f3d81ec7 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -1,7 +1,12 @@ -# Author: Miodrag Milic -# Last Change: 02-Dec-2016. - <# + Author: Miodrag Milic + Last Change: 08-May-2018 + + ChangeLog: + Changed on 08-May-2018 + Added NoCheckChocoVersion as a switch for not checking http://chocolatey.org version. + + .SYNOPSIS Update all automatic packages From dbe03c44398759d8790498eb18d92143be3593a3 Mon Sep 17 00:00:00 2001 From: RB Date: Fri, 11 May 2018 20:24:09 -0700 Subject: [PATCH 5/6] Update Update-AUPackages.ps1 Oops Wrong place for changelog --- AU/Public/Update-AUPackages.ps1 | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/AU/Public/Update-AUPackages.ps1 b/AU/Public/Update-AUPackages.ps1 index f3d81ec7..2f5a4869 100644 --- a/AU/Public/Update-AUPackages.ps1 +++ b/AU/Public/Update-AUPackages.ps1 @@ -1,12 +1,9 @@ -<# - Author: Miodrag Milic - Last Change: 08-May-2018 - - ChangeLog: - Changed on 08-May-2018 - Added NoCheckChocoVersion as a switch for not checking http://chocolatey.org version. - + # Author: Miodrag Milic + # Last Change: 08-May-2018 + + +<# .SYNOPSIS Update all automatic packages From da5990d6b9527145d8045ddc732d5ee58e7388f5 Mon Sep 17 00:00:00 2001 From: RB Date: Fri, 11 May 2018 20:27:20 -0700 Subject: [PATCH 6/6] Update CHANGELOG.md Added Changes for AUPackage --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91c42dc4..c2cf0b95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ## Next - Git plugin: add `Branch` parameter to specify a branch name +## 2018.5.81 +- `Update-AuPackage` + - Added NoCheckChocoVersion as a switch for not checking http://chocolatey.org version. + ## 2018.1.11 - `Update-AuPackage` - New feature [streams](https://github.com/majkinetor/au#streams) that extends `au_GetLatest` with option to return multiple HashTables (one for each stream).