From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-642433-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 16E00138247
	for <garchives@archives.gentoo.org>; Wed, 20 Nov 2013 20:38:57 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B285DE0B28;
	Wed, 20 Nov 2013 20:38:51 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 43473E0B28
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Nov 2013 20:38:51 +0000 (UTC)
Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1C5A133EED5
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Nov 2013 20:38:50 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id F3066E5459
	for <gentoo-commits@lists.gentoo.org>; Wed, 20 Nov 2013 20:38:47 +0000 (UTC)
From: "Vikraman Choudhury" <vikraman@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Vikraman Choudhury" <vikraman@gentoo.org>
Message-ID: <1384979840.dc21831a9a058c8f3c110674c5d3dd0de757cb5c.vikraman@gentoo>
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: bin/
X-VCS-Repository: proj/gentoolkit
X-VCS-Files: bin/euse
X-VCS-Directories: bin/
X-VCS-Committer: vikraman
X-VCS-Committer-Name: Vikraman Choudhury
X-VCS-Revision: dc21831a9a058c8f3c110674c5d3dd0de757cb5c
X-VCS-Branch: gentoolkit
Date: Wed, 20 Nov 2013 20:38:47 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 003dae18-64fb-4803-8d10-02d7b608820b
X-Archives-Hash: 5219847e690623255eaa9e92b6706e31

commit:     dc21831a9a058c8f3c110674c5d3dd0de757cb5c
Author:     Vikraman Choudhury <vikraman <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 20:37:20 2013 +0000
Commit:     Vikraman Choudhury <vikraman <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 20:37:20 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=dc21831a

Handle numbers in package names
Fixes bug 491764

---
 bin/euse | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/euse b/bin/euse
index 7d5c83a..e60cab0 100755
--- a/bin/euse
+++ b/bin/euse
@@ -1070,7 +1070,7 @@ scrub_use_flag() {
 modify_package() {
 	get_useflags
 
-	local atom_re="^[<>]?=?([a-z][0-9a-z/-]+[a-z])(-[0-9pr._*-]+)?"
+	local atom_re="^[<>]?=?([a-z][0-9a-z/-]+[0-9a-z])(-[0-9pr._*-]+)?"
 	local pkg=$(echo "${PACKAGE}" | sed -re "s/${atom_re}/\1/")
 	local V=$(echo "${PACKAGE}" | sed -re "s/${atom_re}/\2/")
 	local pkg_re="[<>]?=?${pkg}(-[\dpr._*-]+)?"