From 6829d14b9f47f43f155cc443ecda1aaf0e1df4b6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Jun 2015 07:29:27 +0200 Subject: ignore duplicate entry for composer provides --- class/Parser.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'class/Parser.php') diff --git a/class/Parser.php b/class/Parser.php index be278ec..a655fac 100644 --- a/class/Parser.php +++ b/class/Parser.php @@ -360,8 +360,13 @@ class Parser 'rpmname' => $rpm, 'pkgname' => $pkg, ); - if ($pkgtable->add($input)) { - $tot++; + try { + if ($pkgtable->add($input)) { + $tot++; + } + } catch (Exception $e) { + # ignore duplicate key for now + # ex pimple/pimple provided by php-pimple1 and php-pimple } } } -- cgit