Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-3490) Sync from Community Repo #28

Merged

Conversation

ferventcoder
Copy link

No description provided.

ferventcoder and others added 18 commits March 27, 2016 08:17
PowerShell v2/3 caches the output stream. Then it throws errors due to
the FileStream not being what is expected. Fixes "The OS handle's
position is not what FileStream expected. Do not use a handle
simultaneously in one FileStream and in Win32 code or another
FileStream."

The fix comes from
http://www.leeholmes.com/blog/2008/07/30/workaround-the-os-handles-position-is-not-what-filestream-expected/
plus information in the comments that actually makes it work.
The Chocolatey install PowerShell script has been signed
at dot org and all of the scripts in Chocolatey 0.9.10 are
being signed, so it is appropriate to sign this script as
well for the benefit of folks who would need that.
The output from error messages is way too much when these are on by
default. It would be helpful to see only what has errored and allow the
user to investigate further if need be. This gives the user the ability
to choose whether or not to add those values to the arguments as part
of `install_options` and `uninstall_options`.
To increase awareness that Professional and Business editions are
available, add information in the readme.
There is a syntax error in the readme related to setting the default
provider for Windows. It needs a second set of brackets surrounding
Package.
If the PowerShell Output redirection fix does not successfully apply,
we don't want it to fail the entire script. It uses internal variables
that only apply to the PowerShell InternalHost/ConsoleHost that
short-circuited logging and caused a FileStream error when you
attempted to write to multiple log streams.

Due to sometimes calling this script with non-default PowerShell
hosts (like with the new 2.0 puppet powershell provider), we want to
ensure that if the fix errors, it does not fail the entire script.
Update config.pp to accomodate new choco feature list -r output. The findstr
fails to match on the new version of chocolatey 0.9.10.2.
It can now find: "autoUninstaller|Enabled|" or "autoUninstaller|Disabled|"
* pr132:
  (chocolatey-archiveGH-133) Feature list update for  0.9.10
Removed a line break which was causing installation issues with
1.x versions of the PowerShell provider  module. Older versions of
PowerShell, such as PowerShell v2, and the 1.x module do not
handle line breaks with else statements very well.
* pr129:
  (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else"
$_find_str = "autoUninstaller|${_enable_autouninstaller}d|"
} else {
$_find_str = "autoUninstaller - [${_enable_autouninstaller}d]"
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually still has an issue to be resolved.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still outstanding?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. I think I have this fixed up though so I will commit and update this.

ferventcoder and others added 6 commits July 9, 2016 22:20
In 0.9.10, auto uninstaller should be enabled by default, so there is
no need to run to enable it.
To allow for specs to run correctly on older versions of Ruby, json
requires using less than 2.0.0. Interestingly though, json should not
be used for regular testing as it requires devkit. Remove both gems
that depend on json so that tests in older versions of Windows will
work and so that testing doesn't require DevKit.
Module updated with lastest modsync settings

# Conflicts:
#	.gitignore
#	Gemfile
* master:
  (version) 1.2.6
  (MODULES-3536) modsync update
  (maint) Remove travis and metadata-json-lint gems
  (chocolatey-archiveGH-134) Only Enable AutoUninstaller in 0.9.9.x
  (version) 1.2.5
  (maint) prep for release of 1.2.5
  (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else"
  (chocolatey-archiveGH-133) Feature list update for  0.9.10
  (version) 1.2.4
  (chocolatey-archiveGH-125) Compatible Up to PowerShell Provider 3.x
  (chocolatey-archiveGH-125) Wrap PowerShell Redirect in Try/Catch
  (chocolatey-archiveGH-69) Fix - default provider example
  (doc) make that text a bit more prominent
  (version) 1.2.3 for real
  (version) 1.2.3
  (doc) add editions of Chocolatey
  (chocolatey-archiveGH-100) Do not call choco with --debug --verbose
  (version) 1.2.2
  Sign the installer script template
  (chocolatey-archiveGH-119) Implement PowerShell Redirection Fix
@ferventcoder ferventcoder force-pushed the ticket/master/MODULES-3490-sync branch from 46a71f5 to 845d93c Compare July 11, 2016 17:41
@ferventcoder ferventcoder changed the title {WIP} (MODULES-3490) Sync from Community Repo {WIP} Jul 11, 2016
@ferventcoder ferventcoder changed the title {WIP} (MODULES-3490) Sync from Community Repo Jul 11, 2016
@ferventcoder
Copy link
Author

Passed ad hoc - @glennsarti all ready for your final +1 and merge.

* Fix: puppet apply works again - see [#105](https://github.com/chocolatey/puppet-chocolatey/issues/105)
* Includes community module releases up to 1.2.1, plus these additional fixes:
* $::chocolateyversion fact is optional - see [#110](https://github.com/chocolatey/puppet-chocolatey/issues/110)
* Fix: puppet apply works again - see [#105](https://github.com/chocolatey/puppet-chocolatey/issues/105)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@glennsarti glennsarti merged commit 328a82d into puppetlabs:master Jul 11, 2016
@ferventcoder ferventcoder deleted the ticket/master/MODULES-3490-sync branch July 12, 2016 14:19
ThoughtCrhyme pushed a commit to ThoughtCrhyme/puppetlabs-chocolatey that referenced this pull request Mar 20, 2017
…x_empty_record_crash

(QA-2681) Fix Empty Record Crash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants