Fix apt::pin for Puppet 2.6
authorRaphaël Pinson <raphael.pinson@camptocamp.com>
Tue, 18 Jun 2013 13:14:00 +0000 (15:14 +0200)
committerRaphaël Pinson <raphael.pinson@camptocamp.com>
Tue, 18 Jun 2013 13:14:00 +0000 (15:14 +0200)
manifests/pin.pp

index e6e293e45260db337f3b2d80f4fe2fc74f8bd4d5..39de3d8f1f688bbf1f79b5903c094558923efb07 100644 (file)
@@ -14,7 +14,7 @@ define apt::pin(
   $release_version = '', # v=
   $component       = '', # c=
   $originator      = '', # o=
-  $label           = '', # l=
+  $label           = ''  # l=
 ) {
 
   include apt::params
@@ -25,13 +25,14 @@ define apt::pin(
     fail('Only integers are allowed in the apt::pin order param')
   }
 
-  $pin_release = join([
+  $pin_release_array = [
     $release,
     $codename,
     $release_version,
     $component,
     $originator,
-    $label], '')
+    $label] 
+  $pin_release = join($pin_release_array, '')
 
   # Read the manpage 'apt_preferences(5)', especially the chapter
   # 'Thea Effect of APT Preferences' to understand the following logic