MERGED: installPackage needs to treat $httptopdir the same as $topdir
authorIan Lynagh <igloo@earth.li>
Sat, 3 Nov 2007 18:02:59 +0000 (18:02 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 3 Nov 2007 18:02:59 +0000 (18:02 +0000)
Sun Oct 28 06:45:34 PDT 2007  Ian Lynagh <igloo@earth.li>

libraries/installPackage.hs

index 6e5914d..c255103 100644 (file)
@@ -105,6 +105,8 @@ doit verbosity ghcpkg ghcpkgconf destdir topdir
 
 replaceTopdir :: FilePath -> FilePath -> FilePath
 replaceTopdir topdir ('$':'t':'o':'p':'d':'i':'r':p) = topdir ++ p
+replaceTopdir topdir ('$':'h':'t':'t':'p':'t':'o':'p':'d':'i':'r':p)
+    = topdir ++ p
 replaceTopdir _ p = p
 
 -- Get the build info, merging the setup-config and buildinfo files.