Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e8edc638b3b644fd7fa7bed55e6f1df9 > files > 4

anaconda-11.1.2.168-2.SL.src.rpm

--- anaconda-11.1.2.87/loader2/method.c	2007-08-06 16:08:16.000000000 -0500
+++ anaconda-11.1.2.87.SL/loader2/method.c	2008-04-14 10:47:58.242000000 -0500
@@ -601,11 +601,26 @@
     }
 
     /* JKFIXME: this is kind of silly.. /mnt/source is hardcoded :/ */
-    copyUpdatesImg("/mnt/source/images/updates.img");
+    /* origpath is needed as dirname mucks with path */
+    char * tmppath;
+    char * origpath;
+     
+    origpath = sdupprintf("%s",path);
+    tmppath = sdupprintf("%s/updates.img", dirname(path));
+    logMessage(INFO, "tmppath is %s , path is %s", tmppath, path);
+    copyUpdatesImg(tmppath);
 
-    /* more hard coding */
-    copyProductImg("/mnt/source/images/product.img");
+/*    copyUpdatesImg("/mnt/source/images/updates.img"); */
 
+    /* more hard coding */
+    path = sdupprintf("%s",origpath);
+    tmppath = sdupprintf("%s/product.img", dirname(path));
+    logMessage(INFO, "tmppath is %s , path is %s", tmppath, path);
+    copyProductImg(tmppath);
+/*    copyProductImg("/mnt/source/images/product.img"); */
+    path = sdupprintf("%s",origpath);
+    free(tmppath);
+    free(origpath);
     return 0;
 }