From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4A740138A87 for ; Wed, 25 Feb 2015 23:57:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8F7AE08D5; Wed, 25 Feb 2015 23:57:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6C30FE08D5 for ; Wed, 25 Feb 2015 23:57:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 254CD340AA2 for ; Wed, 25 Feb 2015 23:57:25 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9035C128DF for ; Wed, 25 Feb 2015 23:57:23 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1424908638.226a11deea595aed4c4bbfd4aeec285923867e0f.robbat2@gentoo> Subject: [gentoo-commits] proj/ag:master commit in: / X-VCS-Repository: proj/ag X-VCS-Files: ag X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 226a11deea595aed4c4bbfd4aeec285923867e0f X-VCS-Branch: master Date: Wed, 25 Feb 2015 23:57:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8672c136-1c2f-41d0-8bdf-0fae78564e58 X-Archives-Hash: 9cc09de51c40db31b8ccf28bd936f46b commit: 226a11deea595aed4c4bbfd4aeec285923867e0f Author: Robin H. Johnson gentoo org> AuthorDate: Wed Feb 25 23:57:18 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Wed Feb 25 23:57:18 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=226a11de Always raise problems from create/delete if calling from maildir indexing calls. Signed-off-by: Robin H. Johnson gentoo.org> --- ag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ag b/ag index 5602df5..c220b9d 100755 --- a/ag +++ b/ag @@ -154,8 +154,8 @@ Ag::Utils.proc_count = $options.jobs def do_full abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir - do_delete_index(ignore_missing: true) unless $options.readonly - do_create_index(ignore_exists: true) + do_delete_index(ignore_missing: true, _raise: true) unless $options.readonly + do_create_index(ignore_exists: true, _raise: true) messages = $maildir.list(:cur) @@ -180,7 +180,7 @@ end def do_incremental abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir messages = $maildir.list(:new) - do_create_index(ignore_exists: true) + do_create_index(ignore_exists: true, _raise: true) opts = { :in_processes => Ag::Utils.proc_count,