From 7ac872366513428d234c91d11a24649cc02417ec Mon Sep 17 00:00:00 2001 From: "Jauhien Piatlicki (jauhien)" Date: Wed, 20 Nov 2013 23:51:59 +0100 Subject: gs-pypi: fix issue#4 --- gs_pypi/pypi_db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gs_pypi/pypi_db.py b/gs_pypi/pypi_db.py index 847cbf3..2b201c6 100644 --- a/gs_pypi/pypi_db.py +++ b/gs_pypi/pypi_db.py @@ -137,7 +137,10 @@ class PypiDBGenerator(DBGenerator): data["info"][entry_name] = {} for cat_entry in entry("a"): cat_data = cat_entry.string.split(" :: ") - data["info"][entry_name][cat_data[0]] = cat_data[1:] + if not cat_data[0] in data["info"][entry_name]: + data["info"][entry_name][cat_data[0]] = cat_data[1:] + else: + data["info"][entry_name][cat_data[0]].extend(cat_data[1:]) continue if entry("span"): -- cgit v1.2.3-65-gdbad