puppetlabs/puppet — pull request #522 by domcleal (2012-02-21 22:37:23+00:00)
Title: (#8011) Support temp repo URLs in pkgutil provider

One or more URLs to pkgutil repositories can be supplied in the "source"
attribute and are given to pkgutil via the -t option as temporary repos. A
single URL can be given, or multiple URLs as an array.

Issue: https://projects.puppetlabs.com/issues/8011

We went on a wild goose chase in the redmine thread, I wouldn't pay to much attention to it all! The problem was that there was an issue with String#map on Ruby 1.9, so I copied code from the Augeas provider that then let it support a newline delimited string of URLs as well as an array. This was superfluous, so this commit only supports a single URL as a string and an array of multiple URLs.