make removeKey throw exceptions
This commit is contained in:
parent
b5ee97f32a
commit
4be94c67c7
28 changed files with 134 additions and 111 deletions
|
@ -199,7 +199,9 @@ retrieve' serial src dest = checkAdbInPath False $ do
|
|||
]
|
||||
|
||||
remove :: AndroidSerial -> AndroidPath -> Remover
|
||||
remove serial adir k = remove' serial (androidLocation adir k)
|
||||
remove serial adir k =
|
||||
unlessM (remove' serial (androidLocation adir k)) $
|
||||
giveup "adb failed"
|
||||
|
||||
remove' :: AndroidSerial -> AndroidPath -> Annex Bool
|
||||
remove' serial aloc = adbShellBool serial
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue