Make DESTDIR work again
authorsven.panne@aedion.de <unknown>
Sun, 16 Sep 2007 08:43:39 +0000 (08:43 +0000)
committersven.panne@aedion.de <unknown>
Sun, 16 Sep 2007 08:43:39 +0000 (08:43 +0000)
installPackage is a horror, using --force is probably not the perfect way
to make DESTDIR functionality work again, but given the current state of
affairs, I can't find a quick and clean solution.

MERGE TO STABLE

libraries/installPackage.hs

index 475a55e..5946a6b 100644 (file)
@@ -85,7 +85,7 @@ doit destdir ipref ibindir ilibdir ilibexecdir idatadir idocdir
               prog = ConfiguredProgram {
                          programId = programName ghcPkgProgram,
                          programVersion = Nothing,
               prog = ConfiguredProgram {
                          programId = programName ghcPkgProgram,
                          programVersion = Nothing,
-                         programArgs = ["--global-conf", ghcpkgconf],
+                         programArgs = ["--force", "--global-conf", ghcpkgconf],
                          programLocation = UserSpecified ghcpkg
                      }
               progs' = updateProgram prog progs
                          programLocation = UserSpecified ghcpkg
                      }
               progs' = updateProgram prog progs