[clbuild-devel] [PATCH] Simplify test for existing repository

Albert Krewinkel krewinkel at gmx.net
Fri Oct 24 18:29:19 UTC 2008


On Oct 24, 2008, at 10:12 AM, Daniel White wrote:
> There is an odd test in the method below:
> [...]
> I can't seem to find any sane reason that we'd want to get a list of
> all possible directories that happen to start with $name rather than
> just test for a directory $name.

Image a package distributed by tarballs.  More often than not, folder  
names created from those tarballs contain a version number (like hello- 
world-8.12.23 or foo-20081023).  Therefore, checking for directories  
which start with $name does make sense.  However, a specific test for  
version numbers after the name would be a better solution (who's up to  
writing one?)

Cheers, Albert




More information about the clbuild-devel mailing list