command "/usr/bin/apt-get update"
end
+sources_template = case node[:lsb][:release].to_f
+ when 12.10 then "old-sources.list.erb"
+ else "sources.list.erb"
+end
+
template "/etc/apt/sources.list" do
- source "sources.list.erb"
+ source sources_template
owner "root"
group "root"
mode 0644