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

Msys2 #891

Merged
merged 16 commits into from
Nov 6, 2017
Merged

Msys2 #891

merged 16 commits into from
Nov 6, 2017

Conversation

majkinetor
Copy link
Contributor

@majkinetor majkinetor commented Nov 4, 2017

https://chocolatey.org/packages/msys2

Description

Embedded, made automatic package, and modernized. Documented relation with ruby installer.

How Has this Been Tested?

Locally

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Migrated package (a package have been migrated from another repository)

Checklist:

  • My code follows the code style of this repository.
  • My change requires a change to documentation (this mean usually the notes in the description of a package).
  • I have updated the documentation accordingly (this mean usually the notes in the description of a package).
  • All files is up to date with the latest Contributing Guidelines
  • The added/modified package passed install/uninstall in the chocolatey test environment.
  • The changes only affect a single package (not including meta package).

Original Location

/cc @userzimmermann @petemounce

Write-Host "Starting initialization via msys2_shell.cmd"
Start-Process "$install_dir\msys2_shell.cmd" -Wait -ArgumentList '-c', exit

if (!$pp.NoPath) { Install-ChocolateyPath $pp.InstallDir }
Copy link
Member

Choose a reason for hiding this comment

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

The path will need to be removed in an uninstall script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


$pp = Get-PackageParameters
if (!$pp.InstallDir) { $pp.InstallDir = "{0}\{1}" -f (Get-ToolsLocation), $dir_name }
$install_dir = $pp.InstallDir
Copy link
Member

Choose a reason for hiding this comment

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

Since allowing custom installation directory, an uninstall script is needed to remove the path on uninstall.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original package was not removing the directory. I added a message as was there before as I also think its safer to not delete it. Perhaps there is no harm in removing it but its a minor issue anyway so I opted for the safe side.

@gep13
Copy link
Member

gep13 commented Nov 5, 2017

Do we need to create a PR to remove from upstream repository? Or are we saying that this isn't needed since it isn't an automated repository i.e. AU/ketarin?

@majkinetor
Copy link
Contributor Author

I don't PR non automatic packages because there is no damage, links to package source on older versions work and maintenance is already a lot of work.

@gep13
Copy link
Member

gep13 commented Nov 5, 2017

Understood, just wanted to check.

@majkinetor majkinetor merged commit 259c1b8 into master Nov 6, 2017
@majkinetor majkinetor deleted the msys2 branch November 6, 2017 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants