From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.90.87.14 with SMTP id k14cs1208205agb; Tue, 29 Dec 2009 19:09:22 -0800 (PST) Received: by 10.224.44.77 with SMTP id z13mr8426200qae.195.1262142562642; Tue, 29 Dec 2009 19:09:22 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 8si19811026qyk.56.2009.12.29.19.09.22; Tue, 29 Dec 2009 19:09:22 -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 52BA618582D5; Tue, 29 Dec 2009 22:09:22 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id E2F2718582CE for ; Tue, 29 Dec 2009 22:09:19 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 6F5F26011; Wed, 30 Dec 2009 05:09:19 +0200 (EET) From: Tero Tilus To: sup-devel Date: Wed, 30 Dec 2009 05:09:19 +0200 Message-Id: <1262142124-sup-1397@tilus.net> User-Agent: Sup/git Subject: [sup-devel] [PATCH] Make sup-tweak-labels work as advertised with no sources listed 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 Signed-off-by: Tero Tilus --- It is checked later (line 68) on if there were any sources to work with. This 'if ARGV.empty?' just prevents using sup-tweak-labels for all sources. bin/sup-tweak-labels | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels index 90f6a57..9bb97b2 100755 --- a/bin/sup-tweak-labels +++ b/bin/sup-tweak-labels @@ -58,7 +58,6 @@ add_labels = opts[:add].to_set_of_symbols "," 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? -Trollop::die "no sources specified" if ARGV.empty? Redwood::start index = Redwood::Index.init -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel