MERGED: installPackage needs to treat $httptopdir the same as $topdir
[ghc-hetmet.git] / 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.