summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Obnam.hs
diff options
context:
space:
mode:
authorJoey Hess2017-10-25 11:48:50 -0400
committerJoey Hess2017-10-25 11:48:50 -0400
commit628f239e0dab82cee2c1b9a1f2818695990df122 (patch)
treeb9260f539dcf6eb126a6e0476528364eb81ab600 /src/Propellor/Property/Obnam.hs
parentc693c11b69cfa18d30fbadefbea257bf62c314a6 (diff)
parentb437fa963d7e44945d24c1c5a6453cebcaf7a682 (diff)
Merge remote-tracking branch 'nicolas/ignore-lost-n-found'
Diffstat (limited to 'src/Propellor/Property/Obnam.hs')
-rw-r--r--src/Propellor/Property/Obnam.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Obnam.hs b/src/Propellor/Property/Obnam.hs
index 7943b46e..264d6748 100644
--- a/src/Propellor/Property/Obnam.hs
+++ b/src/Propellor/Property/Obnam.hs
@@ -113,7 +113,7 @@ restored dir params = go `requires` installed
, noChange
)
- needsRestore = null <$> catchDefaultIO [] (dirContents dir)
+ needsRestore = isUnpopulated dir
restore = withTmpDirIn (takeDirectory dir) "obnam-restore" $ \tmpdir -> do
ok <- boolSystem "obnam" $