summaryrefslogtreecommitdiff
path: root/Command/RecvKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-15 22:42:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-15 22:42:34 -0400
commit2e1cc2f8b98aaf9e01b620d557c42d5b1ae2aaa6 (patch)
tree57ad758d6a1e193a2cf9974e1d4172f500548e6f /Command/RecvKey.hs
parentda504f647fdbec7aa3a3c08244520de2c00898ef (diff)
fixed dropkey, setkey, and git-annex-shell subcommands
key is now specified as the full key, no --backend needed
Diffstat (limited to 'Command/RecvKey.hs')
-rw-r--r--Command/RecvKey.hs11
1 files changed, 2 insertions, 9 deletions
diff --git a/Command/RecvKey.hs b/Command/RecvKey.hs
index 488bab62d..c7c37d1e3 100644
--- a/Command/RecvKey.hs
+++ b/Command/RecvKey.hs
@@ -12,10 +12,8 @@ import Control.Monad.State (liftIO)
import System.Exit
import Command
-import Types
import CmdLine
import Content
-import qualified Backend
import RsyncFile
command :: [Command]
@@ -25,12 +23,8 @@ command = [Command "recvkey" paramKey seek
seek :: [CommandSeek]
seek = [withKeys start]
-start :: CommandStartString
-start keyname = do
- error "BROKEN FIXME!"
- {-
- backends <- Backend.list
- let key = genKey (head backends) keyname
+start :: CommandStartKey
+start key = do
present <- inAnnex key
when present $
error "key is already present in annex"
@@ -43,4 +37,3 @@ start keyname = do
_ <- shutdown
liftIO exitSuccess
else liftIO exitFailure
- -}