diff options
author | Joey Hess <joey@kitenet.net> | 2013-04-02 23:40:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-04-02 23:40:13 -0400 |
commit | c72aae3c2d4b8583ceffc4cb0f35ce21f4d2aa08 (patch) | |
tree | ba50951f110604a7351bc3286bb9e6b2b8ceb427 /Types | |
parent | 6915e1f9087aa19e99552af5304c6ef86f996c0f (diff) |
fix preferred content check for 1 semitrusted or better copy
Let's make semitrusted+:1 mean that, since it cannot be expressed easily
with the current syntax (could use (semitrusted:1 or trusted:1), but that
does not scale to higher values than 2 copy, and also fails if I add more
trust levels).
Thanks to Andy for spotting this bug by just reading my blog.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/StandardGroups.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Types/StandardGroups.hs b/Types/StandardGroups.hs index 2670ec2a4..2262c3bde 100644 --- a/Types/StandardGroups.hs +++ b/Types/StandardGroups.hs @@ -74,4 +74,4 @@ preferredContent UnwantedGroup = "exclude=*" {- Most repositories want any content that is only on untrusted - or dead repositories. -} lastResort :: String -> String -lastResort s = "(" ++ s ++ ") or (not copies=semitrusted:1)" +lastResort s = "(" ++ s ++ ") or (not copies=semitrusted+:1)" |