[PATCH]Package extention recognition
Michael A Chase
Thu Jan 24 17:49:00 GMT 2002
I noticed that find_tar_ext() always returns after checking for ".tar.bz2"
and ".tar.gz" so it never gets to the check for ".tar". As long as I was
fixing that, it seemed like a good time to add ".cwp" as an accepted file
I also updated the code in fromcwd.cc so it can accept any extension found
by find_tar_ext() if it is ever reactivated. I think it might be better if
no msg() call is made if no "-src" file is found and I also think the fall
back to "-src.tar.bz2" or "-src.tar.gz" could be dispensed with. I left
those in for now in case someone really wanted them.
The code compiles successfully into setup.exe 2.184. I successfully
downloaded and installed 3 packages with the new setup.exe.
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
2002-01-24 Michael A Chase <firstname.lastname@example.org>
* filemanip.cc (find_tar_ext): Recognize file extensions .tar and .cwd
addition to .tar.gz and .tar.bz2.
* fromcwd.cc (do_fromcwd): Try same extension as binary archive for -src
archive before falling back to .tar.bz2 or .tar.gz.
* install.cc (install_one_source): Add space between words in log()
More information about the Cygwin-patches