savingOldConfig: add Exception.block for extra paranoia
authorSimon Marlow <simonmar@microsoft.com>
Tue, 1 Aug 2006 13:10:27 +0000 (13:10 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 1 Aug 2006 13:10:27 +0000 (13:10 +0000)
utils/ghc-pkg/Main.hs

index cc634ea..8290345 100644 (file)
@@ -577,7 +577,7 @@ writeNewConfig filename packages = do
   hPutStrLn stdout "done."
 
 savingOldConfig :: FilePath -> IO () -> IO ()
-savingOldConfig filename io = do
+savingOldConfig filename io = Exception.block $ do
   hPutStr stdout "Saving old package config file... "
     -- mv rather than cp because we've already done an hGetContents
     -- on this file so we won't be able to open it for writing