diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-10-25 11:48:50 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-10-25 11:48:50 -0400 |
| commit | 628f239e0dab82cee2c1b9a1f2818695990df122 (patch) | |
| tree | b9260f539dcf6eb126a6e0476528364eb81ab600 /src/Propellor/Property/Borg.hs | |
| parent | c693c11b69cfa18d30fbadefbea257bf62c314a6 (diff) | |
| parent | b437fa963d7e44945d24c1c5a6453cebcaf7a682 (diff) | |
Merge remote-tracking branch 'nicolas/ignore-lost-n-found'
Diffstat (limited to 'src/Propellor/Property/Borg.hs')
| -rw-r--r-- | src/Propellor/Property/Borg.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Borg.hs b/src/Propellor/Property/Borg.hs index 989fb4b9..49259206 100644 --- a/src/Propellor/Property/Borg.hs +++ b/src/Propellor/Property/Borg.hs @@ -95,7 +95,7 @@ restored dir repo = go `requires` installed , noChange ) - needsRestore = null <$> catchDefaultIO [] (dirContents dir) + needsRestore = isUnpopulated dir restore = withTmpDirIn (takeDirectory dir) "borg-restore" $ \tmpdir -> do ok <- runBorg repo $ |
