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 7BA051386F3 for ; Thu, 13 Aug 2015 02:45:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C884E07FA; Thu, 13 Aug 2015 02:45:44 +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 D9828E07FA for ; Thu, 13 Aug 2015 02:45:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A97F6340766 for ; Thu, 13 Aug 2015 02:45:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7832514A for ; Thu, 13 Aug 2015 02:45:40 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1439433905.ed170f96178b3e5060d6c7eecce79036b14c9f1e.vapier@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: ed170f96178b3e5060d6c7eecce79036b14c9f1e X-VCS-Branch: master Date: Thu, 13 Aug 2015 02:45:40 +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: 1a12e4f8-471c-4723-857c-b2e49655c8cd X-Archives-Hash: c60cfd7a2576f58edd856bcc990a2bae commit: ed170f96178b3e5060d6c7eecce79036b14c9f1e Author: Mike Frysinger gentoo org> AuthorDate: Thu Aug 13 02:45:05 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Aug 13 02:45:05 2015 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=ed170f96 crossdev: fix gensub 3rd arg Newer gawk points out that the 3rd arg to gensub should be a string with either "g" or "G", or should be a number. An empty string is invalid. Signed-off-by: Mike Frysinger gentoo.org> crossdev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossdev b/crossdev index b501ad8..acaa2a8 100755 --- a/crossdev +++ b/crossdev @@ -325,7 +325,7 @@ parse_repo_config() { } else if ($1 ~ /^\[/) { if (repo_name && loc) repos[prio] = repo_name ":" loc - repo_name = gensub(/\[([^\]]*)\]/, "\\1", "", $1) + repo_name = gensub(/\[([^\]]*)\]/, "\\1", 1, $1) loc = prio = "" } else if ($1 == "priority") { prio = $3