~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to methods/ftp.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2010-02-18 22:07:23 UTC
  • mfrom: (9.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100218220723-zb7zdh6fmsmp30tr
Tags: 0.7.26~exp2
fix crash when LANGUAGE is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
   ##################################################################### */
16
16
                                                                        /*}}}*/
17
17
// Include Files                                                        /*{{{*/
18
 
#include <apt-pkg/contrib/fileutl.h>
 
18
#include <apt-pkg/fileutl.h>
19
19
#include <apt-pkg/acquire-method.h>
20
 
#include <apt-pkg/contrib/error.h>
21
 
#include <apt-pkg/contrib/hashes.h>
 
20
#include <apt-pkg/error.h>
 
21
#include <apt-pkg/hashes.h>
 
22
#include <apt-pkg/netrc.h>
22
23
 
23
24
#include <sys/stat.h>
24
25
#include <sys/time.h>
982
983
   FetchResult Res;
983
984
   Res.Filename = Itm->DestFile;
984
985
   Res.IMSHit = false;
985
 
   
 
986
 
 
987
   maybe_add_auth (Get, _config->FindFile("Dir::Etc::netrc"));
 
988
 
986
989
   // Connect to the server
987
990
   if (Server == 0 || Server->Comp(Get) == false)
988
991
   {