invalidated the wrong cache when setting preferred content
authorJoey Hess <joey@kitenet.net>
Sun, 31 Mar 2013 23:00:14 +0000 (19:00 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 31 Mar 2013 23:00:14 +0000 (19:00 -0400)
Logs/PreferredContent.hs

index 0efe42e174026c0c0134849eac649eba9c2a7014..d980cd373d3eb34116d1ac83db4e68eaa8e1326c 100644 (file)
@@ -43,7 +43,7 @@ preferredContentSet uuid@(UUID _) val = do
        ts <- liftIO getPOSIXTime
        Annex.Branch.change preferredContentLog $
                showLog id . changeLog ts uuid val . parseLog Just
-       Annex.changeState $ \s -> s { Annex.groupmap = Nothing }
+       Annex.changeState $ \s -> s { Annex.preferredcontentmap = Nothing }
 preferredContentSet NoUUID _ = error "unknown UUID; cannot modify"
 
 {- Checks if a file is preferred content for the specified repository