summaryrefslogtreecommitdiff
path: root/templates/Ubuntu
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-06-09 11:35:41 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-06-09 11:35:41 -0400
commitd87876a16fdf6cb710210b1a11572d553dec755a (patch)
treeaf25c8c3452824cb04aed781a715db871c98ba18 /templates/Ubuntu
parent3da1db27075082603a862c8fd5c3c1396e062bc8 (diff)
also disable volatile on ubuntu if relevant
Diffstat (limited to 'templates/Ubuntu')
-rw-r--r--templates/Ubuntu/sources.list.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/Ubuntu/sources.list.erb b/templates/Ubuntu/sources.list.erb
index f3ef37c..213f051 100644
--- a/templates/Ubuntu/sources.list.erb
+++ b/templates/Ubuntu/sources.list.erb
@@ -7,11 +7,13 @@ deb <%= ubuntu_url=scope.lookupvar('apt::ubuntu_url') %> <%= codename %> <%= lre
deb-src <%= ubuntu_url %> <%= codename %> <%= lrepos %>
<% end -%>
+<% if use_volatile=scope.lookupvar('apt::use_volatile') -%>
# updates
deb <%= ubuntu_url %> <%= codename %>-updates <%= lrepos %>
-<% if include_src -%>
+<% if include_src -%>
deb-src <%= ubuntu_url %> <%= codename %>-updates <%= lrepos %>
-<% end -%>
+<% end
+ end -%>
# security suppport
deb <%= ubuntu_url %> <%= codename %>-security <%= lrepos %>