From d018ca16586e8a2fa6d035aab18006958ecc38bc Mon Sep 17 00:00:00 2001 From: "Auke Booij (tulcod)" Date: Sat, 10 Jul 2010 00:37:32 +0200 Subject: Also depend on packages in the 'Imports' field --- g_cran/cran_read.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-65-gdbad