summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-12 10:55:18 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-12 10:55:18 +0000
commit3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1 (patch)
tree84b86497559ad1afbb75dac73a3ddf30865dec27 /mdk-stage1
parent088b6a686d887e02739c34736520715f737fe0c5 (diff)
downloaddrakx-backup-do-not-use-3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1.tar
drakx-backup-do-not-use-3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1.tar.gz
drakx-backup-do-not-use-3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1.tar.bz2
drakx-backup-do-not-use-3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1.tar.xz
drakx-backup-do-not-use-3b7fa31be28a12c3e0a81fa4e6cd0c28fc78c7b1.zip
adapt to new modules.dep format (prefix modules with directory path)
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/NEWS1
-rw-r--r--mdk-stage1/modules.c2
2 files changed, 2 insertions, 1 deletions
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;