summaryrefslogtreecommitdiffhomepage
path: root/keysafe.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-22 12:33:26 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-22 12:33:26 -0400
commit336a7003b59df18326d396846bacbb69f119c7c7 (patch)
treecb17dbc1d4b6c07517e4e391f57e766e47dc4f17 /keysafe.hs
parent188cb6942a43b033d4ac8e233955522dd36a70f2 (diff)
downloadkeysafe-336a7003b59df18326d396846bacbb69f119c7c7.tar.gz
change backup log format so it can also log when backup of a key was skipped
This will be used later when keysafe --autostart prompts if the user wants to back up their gpg key. Making the change now before the backup log format gets frozen. This commit was sponsored by Josh Taylor on Patreon.
Diffstat (limited to 'keysafe.hs')
-rw-r--r--keysafe.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/keysafe.hs b/keysafe.hs
index 6d5186a..7fe27cf 100644
--- a/keysafe.hs
+++ b/keysafe.hs
@@ -19,7 +19,7 @@ import Cost
import SecretKey
import Share
import Storage
-import BackupRecord
+import BackupLog
import AutoStart
import HTTP.Server
import ServerBackup
@@ -114,10 +114,10 @@ backup cmdline storagelocations ui tunables secretkeysource secretkey = do
_ <- sis `seq` addpercent 25
let step = 50 `div` sum (map S.size shares)
storeShares storagelocations sis shares (addpercent step)
- backuprecord <- mkBackupRecord (mapMaybe getServer locs) secretkeysource passwordentropy
+ backuplog <- mkBackupLog $ backupMade (mapMaybe getServer locs) secretkeysource passwordentropy
case r of
StoreSuccess -> do
- storeBackupRecord backuprecord
+ storeBackupLog backuplog
if queued
then do
willautostart <- isAutoStartFileInstalled