From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.13.12 with SMTP id z12cs29491ebz; Tue, 5 Jan 2010 09:23:32 -0800 (PST) Received: by 10.224.88.199 with SMTP id b7mr12207787qam.298.1262712211625; Tue, 05 Jan 2010 09:23:31 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 8si29184019qyk.56.2010.01.05.09.23.31; Tue, 05 Jan 2010 09:23:31 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 947F019782D9; Tue, 5 Jan 2010 12:23:30 -0500 (EST) Received: from mail.cnsp.com (mail.cnsp.com [208.3.80.17]) by rubyforge.org (Postfix) with ESMTP id EEC48167830D for ; Tue, 5 Jan 2010 12:20:27 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.cnsp.com (Postfix) with ESMTP id 5F8ACD448EE0 for ; Tue, 5 Jan 2010 10:20:26 -0700 (MST) X-Virus-Scanned: Debian amavisd-new at cnsp.biz Received: from mail.cnsp.com ([127.0.0.1]) by localhost (mail.cnsp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rRut79-DvIK6 for ; Tue, 5 Jan 2010 10:20:26 -0700 (MST) Received: from home.mrtheplague.net (coffeehost.tcct.nmt.edu [129.138.3.50]) by mail.cnsp.com (Postfix) with SMTP id 867E2D469BBD for ; Tue, 5 Jan 2010 10:20:24 -0700 (MST) Received: by home.mrtheplague.net (Postfix, from userid 1000) id 6687084C2C8D; Tue, 5 Jan 2010 10:20:24 -0700 (MST) From: Anthony Martinez To: sup-devel@rubyforge.org Date: Tue, 5 Jan 2010 10:20:24 -0700 Message-Id: <1262712024-25264-1-git-send-email-pi+sup@pihost.us> X-Mailer: git-send-email 1.6.5 Subject: [sup-devel] [PATCH] fix up options for sup-sync-back, tweak-labels X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org These two violate the convention of the other scripts inside bin/ by using a local variable for their Trollop results. --- bin/sup-sync-back | 2 +- bin/sup-tweak-labels | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/sup-sync-back b/bin/sup-sync-back index 19e6230..40c1e1c 100755 --- a/bin/sup-sync-back +++ b/bin/sup-sync-back @@ -66,7 +66,7 @@ EOS end Redwood::start -index = Redwood::Index.init $opts[:index] +index = Redwood::Index.init opts[:index] index.lock_interactively or exit deleted_fp, spam_fp = nil diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels index f603502..bf36a32 100755 --- a/bin/sup-tweak-labels +++ b/bin/sup-tweak-labels @@ -61,7 +61,7 @@ remove_labels = opts[:remove].to_set_of_symbols "," Trollop::die "nothing to do: no labels to add or remove" if add_labels.empty? && remove_labels.empty? Redwood::start -index = Redwood::Index.init $opts[:index] +index = Redwood::Index.init opts[:index] index.lock_interactively or exit begin index.load -- 1.6.5 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel