Commits

Colin Woodbury committed 989d4ef

Fixed bugs involving packages with dots in their names - Fixes #45 #46

- Turns out `System.FilePath.dropExtensions` was being too zealous.
Since the tarballs being decompressed are all end with .tar.gz,
I instead opted to just call `dropExtension` twice.

Comments (0)

Files changed (2)

 -- System Libraries
 import Distribution.Simple.Utils (withTempDirectory)
 import Control.Concurrent (threadDelay)
-import System.FilePath (dropExtensions)
+import System.FilePath (dropExtension)
 import Distribution.Verbosity (silent)
 import System.IO (stdout, hFlush)
 import Data.List (dropWhileEnd)
 openEditor :: String -> String -> IO ()
 openEditor editor file = shellCmd editor [file] >> return ()
 
+-- All tarballs should be of the format `.tar.gz`
+-- Thus calling dropExtension twice should remove that section.
 decompress :: FilePath -> IO FilePath
 decompress file = do
   _ <- quietShellCmd' "bsdtar" ["-zxvf",file]
-  return $ dropExtensions file
+  return . dropExtension . dropExtension $ file
 
 fromRight :: Either a b -> b
 fromRight (Right x) = x
 Aura Changelog
 ==============
 
+1.0.4.0
+-------
+- Added Russian translation. Thanks to Kyrylo Silin!
+
 1.0.3.2
 -------
 - Moved haskell dependencies out of `makedepends` field and into
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.