aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-18 19:13:35 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-18 19:13:35 +0200
commit0f8c1ddd45d814175682413b6fa289cb7c91e1dd (patch)
tree176b18645360b7a71919cba02f4b8688de65666a
parentnew mechanism fro JSON serialization (diff)
downloadgs-elpa-0f8c1ddd45d814175682413b6fa289cb7c91e1dd.tar.gz
gs-elpa-0f8c1ddd45d814175682413b6fa289cb7c91e1dd.tar.bz2
gs-elpa-0f8c1ddd45d814175682413b6fa289cb7c91e1dd.zip
g_elpa/elpa_db: use Dependency class in depend and rdepend
-rw-r--r--g_elpa/elpa_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g_elpa/elpa_db.py b/g_elpa/elpa_db.py
index 16d7f1f..70378ac 100644
--- a/g_elpa/elpa_db.py
+++ b/g_elpa/elpa_db.py
@@ -22,7 +22,7 @@ if py2k:
else:
from urllib.parse import urljoin
-from g_sorcery.g_collections import Package, serializable_elist
+from g_sorcery.g_collections import Dependency, Package, serializable_elist
from g_sorcery.package_db import PackageDB
from g_sorcery.fileutils import load_remote_file
from g_sorcery.exceptions import SyncError
@@ -72,7 +72,7 @@ class ElpaDB(PackageDB):
for dep in deps:
dep_pkg = self._s_get_package(dep[DEP_NAME], dep[DEP_VERSION])
dependencies.append(dep_pkg)
- depend.append(dep_pkg.category + '/' + dep_pkg.name)
+ depend.append(Dependency(dep_pkg.category, dep_pkg.name))
properties = {'source_type' : source_type,
'description' : description,