diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index faa42fc1..61080848 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -705,7 +705,7 @@ if (( fail )); then exit 1 fi -if (( DB_MODIFIED )); then +if (( DB_MODIFIED )) || [[ ! -f $REPO_DB_FILE ]]; then msg "$(gettext "Creating updated database file '%s'")" "$REPO_DB_FILE" create_db rotate_db