chocolatey / cChoco

Community resource to manage Chocolatey
Apache License 2.0
154 stars 98 forks source link

Set Default Source in chocolatey #35

Closed DamianBis closed 8 years ago

DamianBis commented 8 years ago

This is for #24.

The test is a bit of a hacky way to find the sources. but going through the XML config was preferable to doing a select-string/regex on the output to chocolatey sources list.

It compares on name not URL. so if name already exists but the URL is different it won't overwrite it will return true. this can be improved later if required.

ebekker commented 8 years ago

Changes look good, thanks! And thanks everyone for reviewing and weighing in to refine the PR!