summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--src/Propellor/Property/Apt.hs5
2 files changed, 6 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 3298bae7..0f51140a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ propellor (5.9.1) UNRELEASED; urgency=medium
* Apt: Debian has changed the name of the suite for testing security updates
from testing to testing-security.
+ * Apt: Also the suite for stable releases from bullseye on will be
+ suffixed with "-security".
-- Joey Hess <id@joeyh.name> Wed, 10 Jul 2019 22:02:35 -0400
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