mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 14:11:27 +00:00
delete --force: do not ask when deleting a repo, fixes #5941
This commit is contained in:
parent
a2b131dc2d
commit
d917c3a43b
1 changed files with 23 additions and 22 deletions
|
@ -1241,6 +1241,7 @@ def _delete_repository(self, args, repository):
|
||||||
keep_security_info = args.keep_security_info
|
keep_security_info = args.keep_security_info
|
||||||
|
|
||||||
if not args.cache_only:
|
if not args.cache_only:
|
||||||
|
if args.forced == 0: # without --force, we let the user see the archives list and confirm.
|
||||||
msg = []
|
msg = []
|
||||||
try:
|
try:
|
||||||
manifest, key = Manifest.load(repository, Manifest.NO_OPERATION_CHECK)
|
manifest, key = Manifest.load(repository, Manifest.NO_OPERATION_CHECK)
|
||||||
|
|
Loading…
Reference in a new issue