summaryrefslogtreecommitdiffstats
path: root/class
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-06-03 07:29:27 +0200
committerRemi Collet <fedora@famillecollet.com>2015-06-03 07:29:27 +0200
commit6829d14b9f47f43f155cc443ecda1aaf0e1df4b6 (patch)
tree8eb2a23e7d4b983501fdfe9096c21b6af23334fa /class
parent818d4fda44379e613877ed2251bb1da647479ed0 (diff)
ignore duplicate entry for composer provides
Diffstat (limited to 'class')
-rw-r--r--class/Parser.php9
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
}
}
}