summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Hess2019-07-10 22:05:02 -0400
committerJoey Hess2019-07-10 22:05:02 -0400
commit4064ab26f96709010583840ceea9f68fa08cf495 (patch)
treedf9cec1525d25b067cc78c867bab0ee638179789 /src
parent1b8dcfdd40cd37cef5fc95f24b7e85003efd39e2 (diff)
Apt: Debian has changed the name of the suite for testing security updates from testing to testing-security.
The testing-security suite appeared 4 days ago. I don't know where this change is documented; wish I had known about it before the stable release, as now stable has a propellor that doesn't work with testing.
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Property/Apt.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs
index 6d7fc4d6..41e6cfe7 100644
--- a/src/Propellor/Property/Apt.hs
+++ b/src/Propellor/Property/Apt.hs
@@ -110,9 +110,13 @@ stdArchiveLines = return . binandsrc =<< getMirror
securityUpdates :: SourcesGenerator
securityUpdates suite
| isStable suite || suite == Testing =
- let l = "deb http://security.debian.org/ " ++ showSuite suite ++ "/updates " ++ unwords stdSections
+ let l = "deb http://security.debian.org/ " ++ securitysuite ++ "/updates " ++ unwords stdSections
in [l, srcLine l]
| otherwise = []
+ where
+ securitysuite
+ | suite == Testing = "testing-security"
+ | otherwise = showSuite suite
-- | Makes sources.list have a standard content using the Debian mirror CDN
-- (or other host specified using the `mirror` property), with the