aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-22 03:25:41 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-22 03:25:41 +0200
commit6239c6fe0d39a09f122a3c5f095d1abdabda8653 (patch)
treee268d3f131645075caf91b2eb410dd63303a8322
parentPackadeDB splitted into PackageDB and DBGenerator, more than one repository f... (diff)
downloadgs-elpa-6239c6fe0d39a09f122a3c5f095d1abdabda8653.tar.gz
gs-elpa-6239c6fe0d39a09f122a3c5f095d1abdabda8653.tar.bz2
gs-elpa-6239c6fe0d39a09f122a3c5f095d1abdabda8653.zip
g_sorcery/backend: using Dependency in dependencies list
-rw-r--r--g_elpa/elpa_db.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/g_elpa/elpa_db.py b/g_elpa/elpa_db.py
index 0196b89..8ca6531 100644
--- a/g_elpa/elpa_db.py
+++ b/g_elpa/elpa_db.py
@@ -62,19 +62,16 @@ class ElpaDBGenerator(DBGenerator):
description = "".join([x for x in desc[INFO_DESCRIPTION] if ord(x) in allowed_ords])
deps = desc[INFO_DEPENDENCIES]
- dependencies = []
- depend = serializable_elist(separator="\n\t")
+ dependencies = serializable_elist(separator="\n\t")
realname = entry[PKG_NAME].value()
for dep in deps:
- dep_pkg = self._s_get_package(dep[DEP_NAME], dep[DEP_VERSION])
- dependencies.append(dep_pkg)
- depend.append(Dependency(dep_pkg.category, dep_pkg.name))
+ dependencies.append(Dependency("app-emacs", dep[DEP_NAME].value()))
properties = {'source_type' : source_type,
'description' : description,
'dependencies' : dependencies,
- 'depend' : depend,
- 'rdepend' : depend,
+ 'depend' : dependencies,
+ 'rdepend' : dependencies,
'homepage' : repo_uri,
'repo_uri' : repo_uri,
'realname' : realname,