summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-03-17 19:14:28 +0200
committerLars Wirzenius <liw@liw.fi>2016-03-17 20:54:19 +0200
commitaf092738c9ad7f787872f31a50ba99caaf0787ca (patch)
treed6670ea979485b9a2abd547cf419a3c8ebec9bbd
parent8125661b8af9b725d675faee982f6bd16f402aef (diff)
downloadobnam-af092738c9ad7f787872f31a50ba99caaf0787ca.tar.gz
Remove md5 from --checksum-algorithm choices
-rw-r--r--obnamlib/app.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/app.py b/obnamlib/app.py
index d27aec67..b8493775 100644
--- a/obnamlib/app.py
+++ b/obnamlib/app.py
@@ -93,7 +93,8 @@ class App(cliapp.Application):
metavar='FORMAT')
algos = list(obnamlib.checksum_algorithms)
- algos.remove('sha512')
+ algos.remove('sha512') # We move this first in the list, default.
+ algos.remove('md5') # We're NOT letting the user choose MD5.
algos = ['sha512'] + algos
self.settings.choice(
['checksum-algorithm'],