From 3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 12 Feb 2009 10:55:18 +0000 Subject: adapt to new modules.dep format (prefix modules with directory path) --- mdk-stage1/NEWS | 1 + mdk-stage1/modules.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS index a6d16d8d0..006350208 100644 --- a/mdk-stage1/NEWS +++ b/mdk-stage1/NEWS @@ -1,3 +1,4 @@ +- adapt to new modules.dep format (prefix modules with directory path) - try to use arch-prefixed location for automatic disk installs 1.33: diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index c25d9358f..de1815584 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -156,7 +156,7 @@ static int load_modules_dependencies(void) while (*ptr && (*ptr == ' ')) ptr++; /* sort of a good line */ - modules_deps[line].filename = strdup(start); + modules_deps[line].filename = start[0] == '/' ? strdup(start) : asprintf_("%s/%s", modules_directory, start); modules_deps[line].modname = filename2modname(start); start = ptr; -- cgit v1.2.1