fix inverted Ord for TrustLevel (intermediate commit)
This commit removes the Ord and Enum instances, commenting out all code that depends on them, to make sure that all code effected by the inversion fix has been identified. (Assuming no ifdefs involve TrustLevel.) The next commit will fix up all the identified code.
This commit is contained in:
parent
1831cc4a7d
commit
a0e4b9678b
7 changed files with 16 additions and 13 deletions
2
Limit.hs
2
Limit.hs
|
@ -180,7 +180,7 @@ limitCopies want = case splitc ':' want of
|
|||
checktrust checker u = checker <$> lookupTrust u
|
||||
checkgroup g u = S.member g <$> lookupGroups u
|
||||
parsetrustspec s
|
||||
| "+" `isSuffixOf` s = (>=) <$> readTrustLevel (beginning s)
|
||||
-- | "+" `isSuffixOf` s = (<=) <$> readTrustLevel (beginning s)
|
||||
| otherwise = (==) <$> readTrustLevel s
|
||||
|
||||
{- Adds a limit to match files that need more copies made. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue