summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Apt.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-06-05 17:21:57 -0400
committerJoey Hess <joey@kitenet.net>2014-06-05 17:21:57 -0400
commit4fdd1b9ea4082c4005ded2bf650f349090da6aea (patch)
treefbb7c4dcae57d33af755c90890678390e41b450e /src/Propellor/Property/Apt.hs
parentf8bad2726760268f1daae2a3329be5db310727b8 (diff)
parentc2dd54d167cafe471360fd1e470bd6e50e2ee36b (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Apt.hs')
-rw-r--r--src/Propellor/Property/Apt.hs13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs
index 69144d72..17057af2 100644
--- a/src/Propellor/Property/Apt.hs
+++ b/src/Propellor/Property/Apt.hs
@@ -64,12 +64,19 @@ securityUpdates suite
| otherwise = []
-- | Makes sources.list have a standard content using the mirror CDN,
--- with a particular DebianSuite.
+-- with the Debian suite configured by the os.
--
-- Since the CDN is sometimes unreliable, also adds backup lines using
-- kernel.org.
-stdSourcesList :: DebianSuite -> Property
-stdSourcesList suite = stdSourcesList' suite []
+stdSourcesList :: Property
+stdSourcesList = withOS ("standard sources.list") $ \o ->
+ case o of
+ (Just (System (Debian suite) _)) ->
+ ensureProperty $ stdSourcesListFor suite
+ _ -> error "os is not declared to be Debian"
+
+stdSourcesListFor :: DebianSuite -> Property
+stdSourcesListFor suite = stdSourcesList' suite []
-- | Adds additional sources.list generators.
--