summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Sbuild.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Sbuild.hs')
-rw-r--r--src/Propellor/Property/Sbuild.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs
index f5116c04..23f3b311 100644
--- a/src/Propellor/Property/Sbuild.hs
+++ b/src/Propellor/Property/Sbuild.hs
@@ -453,11 +453,12 @@ ccachePrepared = propertyList "sbuild group ccache configured" $ props
-- this property is handy for quickly setting up build boxes.
userConfig :: User -> Property DebianLike
userConfig user@(User u) = go
- `requires` usableBy
+ `requires` usableBy user
`requires` Apt.installed ["piuparts", "autopkgtest", "lintian"]
where
+ go :: Property DebianLike
go = property' ("~/.sbuildrc for " ++ u) $ \w -> do
- h <- liftIO (homedir user)
+ h <- liftIO (User.homedir user)
ensureProperty w $ File.hasContent (h </> ".sbuildrc")
[ "$run_lintian = 1;"
, ""