repo-remove: fix checking for non-existent .db database
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
50a2db4834
commit
0fa695d0e3
|
@ -547,8 +547,8 @@ prepare_repo_db() {
|
||||||
# TODO: remove if statement
|
# TODO: remove if statement
|
||||||
if [[ $repo == "db" ]]; then
|
if [[ $repo == "db" ]]; then
|
||||||
error "$(gettext "Repository file '%s' was not found.")" "$dbfile"
|
error "$(gettext "Repository file '%s' was not found.")" "$dbfile"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
exit 1
|
|
||||||
;;
|
;;
|
||||||
repo-add)
|
repo-add)
|
||||||
# check if the file can be created (write permission, directory existence, etc)
|
# check if the file can be created (write permission, directory existence, etc)
|
||||||
|
|
Loading…
Reference in New Issue