dmgolubovsky / yhc

Automatically exported from code.google.com/p/yhc
0 stars 0 forks source link

Tarball created by darcs dist is unusable #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the file "build/version.py" there is a line count of the "inventory" 
file to count number of patches and thus determine the version of Yhc. 
This makes a tarball created by darcs dist unusable because the _darcs 
subdirectory which contains inventory is not in the tarball

What steps will reproduce the problem?
1. Check out the repo (darcs get http://darcs.haskell.org/yhc)
2. Create the distribution tarball (darcs dist)
3. Copy the tarball somewhere else and try to build (scons build)

What is the expected output? What do you see instead?

scons build fails because _darcs/inventory does not exist.

Proposed solution (by Neil):

A simple 'file exists' check before reading the
inventory and a default of 1 (or something) would be fine.

Original issue reported on code.google.com by golubov...@gmail.com on 25 Feb 2008 at 2:10