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 310A6138A87 for ; Sat, 21 Feb 2015 21:45:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3D04E09A1; Sat, 21 Feb 2015 21:45:11 +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 46E88E09A1 for ; Sat, 21 Feb 2015 21:45:11 +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 211A6340941 for ; Sat, 21 Feb 2015 21:45:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 23E7D12448 for ; Sat, 21 Feb 2015 21:45:08 +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: <1424555091.38fb0db5e223db54ab2ed68e304a7f00a5940e77.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: 38fb0db5e223db54ab2ed68e304a7f00a5940e77 X-VCS-Branch: master Date: Sat, 21 Feb 2015 21:45:08 +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: 58afdf13-2466-48eb-a9ac-2bf57b296535 X-Archives-Hash: e6d713676798319d25cf9a00c249d071 commit: 38fb0db5e223db54ab2ed68e304a7f00a5940e77 Author: Robin H. Johnson gentoo org> AuthorDate: Sat Feb 21 21:44:51 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat Feb 21 21:44:51 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=38fb0db5 Remove do_fix/--fix for now, it should be done externally to this. Signed-off-by: Robin H. Johnson gentoo.org> --- ag | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ag b/ag index 742abee..37c9079 100755 --- a/ag +++ b/ag @@ -21,7 +21,7 @@ $options.no_threading = false $options.debug = false op = OptionParser.new do |opts| - opts.banner = "Usage: ag <<--index-full|--index-new|--delete|--reindex|--info> <--list listname>|<--fix>> [options]" + opts.banner = "Usage: ag <<--index-full|--index-new|--delete|--reindex|--info> <--list listname>> [options]" opts.on('--index-full', 'Read the full past archive from the .cur Maildir') do abort 'Can only select one action' if $options.action != nil @@ -35,12 +35,6 @@ op = OptionParser.new do |opts| $options.action = :do_incremental end - opts.on('--fix', 'Fix up weird info sections') do - abort 'Can only select one action' if $options.action != nil - - $options.action = :do_fix - end - opts.on('--delete', 'Delete message. Needs --file, --msgid, or --hash') do abort 'Can only select one action' if $options.action != nil @@ -103,15 +97,6 @@ $es.transport.reload_connections! ############################################################################### -def do_fix - Dir.chdir($options.dir) do - Dir.glob('*:2,:2,S').each do |f| - puts "Fixing #{f}" - File.rename(f, f.gsub(':2,:2,S', ':2,S')) - end - end -end - def do_full Ag::Storage.create_index($options.name)