This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]Package extention recognition


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
extension.

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.
--
Mac :})
** 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.

ChangeLog:

2002-01-24  Michael A Chase <mchase@ix.netcom.com>

    * filemanip.cc (find_tar_ext): Recognize file extensions .tar and .cwd
in
    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()
call.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]