summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2019-07-12 14:19:27 -0400
committerJoey Hess2019-07-12 14:19:27 -0400
commita40e5d22354615f13d69d963cbe9c727babc724c (patch)
treeab9f18e2a535dea0514cd445399896fa93fea6ce /src/Propellor
parent31a8f5390d01788f794055f1fdf39326d597d48d (diff)
use "-security" suffix for bullseye and up
The suite for stable releases from bullseye on will be suffixed with "-security". Only 3 past stable releases continue to use the old unsuffixed name.
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/Apt.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs
index 41e6cfe7..68927337 100644
--- a/src/Propellor/Property/Apt.hs
+++ b/src/Propellor/Property/Apt.hs
@@ -116,7 +116,10 @@ securityUpdates suite
where
securitysuite
| suite == Testing = "testing-security"
- | otherwise = showSuite suite
+ | suite `elem` map Stable releasesusingoldname =
+ showSuite suite
+ | otherwise = showSuite suite ++ "-security"
+ releasesusingoldname = ["jessie", "buster", "stretch"]
-- | Makes sources.list have a standard content using the Debian mirror CDN
-- (or other host specified using the `mirror` property), with the