This is the mail archive of the cygwin-apps@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]

RE: [Patch] Command line option to prevent MD5 verification


On Mon, 2003-04-07 at 08:40, Max Bowsher wrote:
> Index: download.cc
> ===================================================================
> RCS file: /home/max/cvsmirror/cygwin-apps-cvs/setup/download.cc,v
> retrieving revision 2.36 diff -u -p -u -p -r2.36 download.cc
> --- download.cc 9 Mar 2003 01:28:52 -0000 2.36
> +++ download.cc 6 Apr 2003 22:33:50 -0000
> @@ -53,15 +53,18 @@ static const char *cvsid =
> 
>  #include "Exception.h"
> 
> +#include "getopt++/BoolOption.h"
> +
>  using namespace std;
> 
>  extern ThreeBarProgressPage Progress;
> 
> +static BoolOption NoMD5Option (false, '5', "no-md5", "Suppress MD5
> checksum verification"); 
> 
>  bool
>  validateCachedPackage (String const &fullname, packagesource &
> pkgsource)  { 
> -  if (pkgsource.md5.isSet())
> +  if (pkgsource.md5.isSet() && !NoMD5Option)
>      {
>        // check the MD5 sum of the cached file here
>        io_stream *thefile = io_stream::open (fullname, "rb");
> 
> 
> Patch for setup-200303, as mentioned yesterday.

Thanks Max :)

J.


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.
Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF


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