From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9F8E31FF40 for ; Fri, 17 Jun 2016 02:13:11 +0000 (UTC) Received: from localhost ([::1]:53248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDjHS-00070m-Hr for e@80x24.org; Thu, 16 Jun 2016 22:13:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDjHP-000702-Dg for dtas-all@nongnu.org; Thu, 16 Jun 2016 22:13:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDjHM-0002kU-7K for dtas-all@nongnu.org; Thu, 16 Jun 2016 22:13:07 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:59366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDjHM-0002kP-1N for dtas-all@nongnu.org; Thu, 16 Jun 2016 22:13:04 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D36E91FF40 for ; Fri, 17 Jun 2016 02:13:00 +0000 (UTC) From: Eric Wong To: dtas-all@nongnu.org Subject: [PATCH] archive: fix suffix replacement for stats Date: Fri, 17 Jun 2016 02:13:00 +0000 Message-Id: <20160617021300.6766-1-e@80x24.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.71.152.64 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: everything related to dtas List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" We should generate "XYZ_0001.stats" files, not "XYZ_0001.flac.stats". --- bin/dtas-archive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dtas-archive b/bin/dtas-archive index ded1ee7..1f22ff4 100755 --- a/bin/dtas-archive +++ b/bin/dtas-archive @@ -133,7 +133,7 @@ next end - stats_out = "#{output.sub(/\.[\.]+\z/, '')}.stats" if stats + stats_out = "#{output.sub(/\.[^\.]+\z/, '')}.stats" if stats if dry_run || !silent names = job.map { |x| Shellwords.escape(x) }