id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty	ghcversion	platform
372	cabal sdist --snapshot does not work, while ./setup sdist snapshot does	nomeata	duncan	"Hi,

cabal sdist has a bug, which does not appear when using Setup.lhs

{{{
$ cabal clean
cleaning...
$ cabal sdist --snapshot
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for free-theorems-0.2.1.20081016...
cabal: dist/src/free-theorems-0.2.1: getDirectoryContents: does not exist (No such file or directory)

$ runhaskell Setup.lhs sdist --snapshot
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for free-theorems-0.2.1.20081016...
Source tarball created: dist/free-theorems-0.2.1.20081016.tar.gz
$ cat Setup.lhs 
#!/usr/bin/env runhaskell
 
> import Distribution.Simple
> main = defaultMain
}}}

Using cabal-install 0.6.0, Cabal 1.6.0.1, ghc 6.8.2. I haven’t looked at the code, but I assume it’s a simple mistake.
"	defect	closed	normal	cabal-install-0.8	cabal-install tool		normal	fixed			very easy (<1 hour)	6.8.2	Linux
