]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
put the file at the right place & fix typos
authormh <mh@immerda.ch>
Thu, 28 Oct 2010 20:05:37 +0000 (22:05 +0200)
committermh <mh@immerda.ch>
Thu, 28 Oct 2010 20:05:37 +0000 (22:05 +0200)
manifests/preferences_snippet.pp
templates/preferences_snippet.erb [moved from files/preferences_snippet.erb with 100% similarity]

index 9da7a8efb7c26ff80662445a49f4ffaf3948ae31..fd2956de5c5cb693a589bedaf05fdaa88c2302e4 100644 (file)
@@ -21,13 +21,15 @@ define apt::preferences_snippet(
   # snippets, but since the preferences.d directory cannot be used in Debian
   # lenny, we can't generalize without going into ugly special-casing.
   case $source {
-    '' =>
-      File["${apt::preferences::apt_preferences_dir/${name}"] {
+    '': {
+      File["${apt::preferences::apt_preferences_dir}/${name}"] {
         content => template("apt/preferences_snippet.erb")
-      },
-    default =>
-      File["${apt::preferences::apt_preferences_dir/${name}"] {
+      }
+    }
+    default: {
+      File["${apt::preferences::apt_preferences_dir}/${name}"] {
         source => $source
       }
+    }
   }
 }