diff options
author | Gabriel Filion <lelutin@gmail.com> | 2010-10-25 00:14:33 -0400 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2010-10-25 00:14:33 -0400 |
commit | d97a49b7b2c020c2c43df6524236f50a421789ee (patch) | |
tree | 80702221488e6cbfe527a6d3a153708441d1e5bc /files | |
parent | ac76a5d52df78aec919f08334ca5b140902a9298 (diff) |
refactor: simplify and remove inline content
Simplifications: make apt_conf_snippet repeat less code, make code that
generates sources.list more concise.
Remove all inline content in favor of templates and static files.
The ability to include sources for static files was needed for
the main 'preferences' file, so it was added to the preferences_snippet
define.
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'files')
-rw-r--r-- | files/preferences | 8 | ||||
-rw-r--r-- | files/preferences_snippet.erb | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/files/preferences b/files/preferences new file mode 100644 index 0000000..e893b7e --- /dev/null +++ b/files/preferences @@ -0,0 +1,8 @@ +Package: * +Pin: release a=unstable +Pin-Priority: 1 + +Package: * +Pin: release a=testing +Pin-Priority: 2 + diff --git a/files/preferences_snippet.erb b/files/preferences_snippet.erb new file mode 100644 index 0000000..4dfb701 --- /dev/null +++ b/files/preferences_snippet.erb @@ -0,0 +1,4 @@ +Package: <%= name %> +Pin: release a=<%= release %> +Pin-Priority: <%= priority %> + |