diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-03 07:29:27 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-03 07:29:27 +0200 |
commit | 6829d14b9f47f43f155cc443ecda1aaf0e1df4b6 (patch) | |
tree | 8eb2a23e7d4b983501fdfe9096c21b6af23334fa | |
parent | 818d4fda44379e613877ed2251bb1da647479ed0 (diff) |
ignore duplicate entry for composer provides
-rw-r--r-- | class/Parser.php | 9 |
1 files changed, 7 insertions, 2 deletions
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 } } } |