summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-07-10 00:37:32 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-07-10 00:37:32 +0200
commitd018ca16586e8a2fa6d035aab18006958ecc38bc (patch)
tree6879ff06440ceaa7595e3c7c95fb9c7b82f6ee97
parentFix installation of bioconductor packages (diff)
downloadg-cran-d018ca16586e8a2fa6d035aab18006958ecc38bc.tar.gz
g-cran-d018ca16586e8a2fa6d035aab18006958ecc38bc.tar.bz2
g-cran-d018ca16586e8a2fa6d035aab18006958ecc38bc.zip
Also depend on packages in the 'Imports' field
-rw-r--r--g_cran/cran_read.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/g_cran/cran_read.py b/g_cran/cran_read.py
index 821b68f..7d467a1 100644
--- a/g_cran/cran_read.py
+++ b/g_cran/cran_read.py
@@ -141,6 +141,10 @@ def pmsify_package_data(data,remote_repository):
deps=listify_package_list(data['depends'])
else: #some packages don't set dependencies, so force dependency on R
deps=['R',]
+
+ if 'imports' in data:
+ deps=deps+listify_package_list(data['imports'])
+
e_vars['depend']=deps
e_vars['pdepend']=[]
e_vars['rdepend']=deps