summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}
}
}