diff options
author | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-05-19 13:11:41 +0200 |
---|---|---|
committer | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-05-19 13:11:41 +0200 |
commit | d13171ba6bb14130957f5e75720821a5f4ff5ceb (patch) | |
tree | 59c9e63411801077221b51b8e9fa9680202fbd71 | |
parent | fix ugly identation (diff) | |
download | gs-elpa-d13171ba6bb14130957f5e75720821a5f4ff5ceb.tar.gz gs-elpa-d13171ba6bb14130957f5e75720821a5f4ff5ceb.tar.bz2 gs-elpa-d13171ba6bb14130957f5e75720821a5f4ff5ceb.zip |
fix handling of dependencies for broken arhive-contents
-rw-r--r-- | gs_elpa/elpa_db.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gs_elpa/elpa_db.py b/gs_elpa/elpa_db.py index e4a0232..e448927 100644 --- a/gs_elpa/elpa_db.py +++ b/gs_elpa/elpa_db.py @@ -13,7 +13,7 @@ import sexpdata -from g_sorcery.compatibility import py2k +from g_sorcery.compatibility import basestring, py2k if py2k: from urlparse import urljoin @@ -91,6 +91,12 @@ class ElpaDBGenerator(DBGenerator): description = "".join([x for x in desc[INFO_DESCRIPTION] if ord(x) in allowed_ords]) deps = desc[INFO_DEPENDENCIES] + + #fix for crappy arhive-contents that have "No commentary." + #in place of dependency + if isinstance(deps, basestring): + deps = [] + dependencies = serializable_elist(separator="\n\t") for dep in deps: dep = self.convert_dependency([common_config, config], |