summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Property/Sbuild.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs
index 35acb8bf..57dead3c 100644
--- a/src/Propellor/Property/Sbuild.hs
+++ b/src/Propellor/Property/Sbuild.hs
@@ -246,12 +246,14 @@ built s@(SbuildSchroot suite arch) mirror cc =
-- clean up config from earlier versions of this module
cleanupOldConfig :: Property UnixLike
cleanupOldConfig =
- property' "old sbuild module config cleaned up" $ \w -> do
+ property' "old sbuild module config cleaned up" $ \w -> do
void $ ensureProperty w $
check (doesFileExist fstab)
(File.lacksLine fstab aptCacheLine)
void $ liftIO . tryIO $ removeDirectoryRecursive profile
- makeChange $ nukeFile (schrootPiupartsConf s)
+ void $ liftIO $ nukeFile (schrootPiupartsConf s)
+ -- assume this did nothing
+ noChange
where
fstab = "/etc/schroot/sbuild/fstab"
profile = "/etc/schroot/piuparts"