aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-22 18:18:37 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-07-22 18:18:37 +0200
commita06e3ae4e13779c2d53a3993178fdf21e1778d6c (patch)
tree2ef876f70434175e72e4794116726794efd63f47
parentexclude packages in tree (g-elpa) (diff)
downloadgs-elpa-a06e3ae4e13779c2d53a3993178fdf21e1778d6c.tar.gz
gs-elpa-a06e3ae4e13779c2d53a3993178fdf21e1778d6c.tar.bz2
gs-elpa-a06e3ae4e13779c2d53a3993178fdf21e1778d6c.zip
external dependency handling
-rw-r--r--g-elpa.json3
-rw-r--r--g_elpa/elpa_db.py7
2 files changed, 8 insertions, 2 deletions
diff --git a/g-elpa.json b/g-elpa.json
index 466a5de..6d2d1c4 100644
--- a/g-elpa.json
+++ b/g-elpa.json
@@ -43,6 +43,7 @@
"tuareg-mode", "twittering-mode", "typing", "u-vm-color", "uboat", "undo-tree", "uptimes",
"vhdl-mode", "view-process", "vm", "volume", "w3mnav", "wanderlust", "whine", "wikipedia-mode", "xclip",
"xrdb-mode", "xslide", "yaml-mode", "yasnippet", "yatex", "yc", "zenburn", "yyzenirc"
- ]
+ ],
+ "external": {"emacs": "virtual/emacs"}
}
}
diff --git a/g_elpa/elpa_db.py b/g_elpa/elpa_db.py
index 3e6e89f..586d02a 100644
--- a/g_elpa/elpa_db.py
+++ b/g_elpa/elpa_db.py
@@ -69,7 +69,9 @@ class ElpaDBGenerator(DBGenerator):
deps = desc[INFO_DEPENDENCIES]
dependencies = serializable_elist(separator="\n\t")
for dep in deps:
- dependencies.append(Dependency("app-emacs", dep[DEP_NAME].value()))
+ dep = self.convert_dependency([common_config, config], dep[DEP_NAME].value(), external = False)
+ if dep:
+ dependencies.append(dep)
properties = {'source_type' : source_type,
'description' : description,
@@ -87,3 +89,6 @@ class ElpaDBGenerator(DBGenerator):
'longdescription' : description
}
pkg_db.add_package(pkg, properties)
+
+ def convert_internal_dependency(self, configs, dependency):
+ return Dependency("app-emacs", dependency)