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 07D3559CA9 for ; Sat, 26 Mar 2016 11:50:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D39E21C008; Sat, 26 Mar 2016 11:50:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BC2D21C008 for ; Sat, 26 Mar 2016 11:50:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C358340C20 for ; Sat, 26 Mar 2016 11:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7DC385E for ; Sat, 26 Mar 2016 11:50:24 +0000 (UTC) From: "Alex Legler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alex Legler" Message-ID: <1458993019.949faff19ad88a8ef952e7e2f51900d490135cce.a3li@gentoo> Subject: [gentoo-commits] sites/www:master commit in: _plugins/ X-VCS-Repository: sites/www X-VCS-Files: _plugins/packages.rb X-VCS-Directories: _plugins/ X-VCS-Committer: a3li X-VCS-Committer-Name: Alex Legler X-VCS-Revision: 949faff19ad88a8ef952e7e2f51900d490135cce X-VCS-Branch: master Date: Sat, 26 Mar 2016 11:50:24 +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: 128dbb6e-e061-443f-97a6-f473aed8014d X-Archives-Hash: 21e946e1a6175334e8150d325f7441fe commit: 949faff19ad88a8ef952e7e2f51900d490135cce Author: Alex Legler a3li li> AuthorDate: Sat Mar 26 11:49:00 2016 +0000 Commit: Alex Legler gentoo org> CommitDate: Sat Mar 26 11:50:19 2016 +0000 URL: https://gitweb.gentoo.org/sites/www.git/commit/?id=949faff1 Fix parsing of new packages containing '(' (#578104) _plugins/packages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_plugins/packages.rb b/_plugins/packages.rb index 2d96cf1..9278b88 100644 --- a/_plugins/packages.rb +++ b/_plugins/packages.rb @@ -15,7 +15,7 @@ module Gentoo item.children.each do |tag| case tag.name when 'title' - if tag.text =~ /^(.*) \((.*)\)$/ + if tag.text =~ /^([^(]*) \((.*)\)$/ item_data['atom'] = $1.strip item_data['atom_c'], item_data['atom_p'] = item_data['atom'].split('/', 2) item_data['description'] = $2