~racb/ubuntu/quantal/apt/by_hash

« back to all changes in this revision

Viewing changes to apt-pkg/clean.cc

  • Committer: Package Import Robot
  • Author(s): Steve Langasek, Michael Vogt, Steve Langasek
  • Date: 2012-06-11 22:36:16 UTC
  • mfrom: (1.4.47 sid)
  • Revision ID: package-import@ubuntu.com-20120611223616-1cctfc7qrxrx4vcu
Tags: 0.9.6ubuntu1
[ Michael Vogt ]
* merged from Debian, remaining changes:
  - use ubuntu keyring and ubuntu archive keyring in apt-key
  - run update-apt-xapian-index in apt.cron
  - support apt-key net-update and verify keys against master-keyring
  - run apt-key net-update in cron.daily
  - different example sources.list
  - APT::pkgPackageManager::MaxLoopCount set to 5000
  - apport pkgfailure handling
  - ubuntu changelog download handling
  - patch for apt cross-building, see http://bugs.debian.org/666772

[ Steve Langasek ]
* Drop upgrade handling for obsolete conffile /etc/apt/apt.conf.d/01ubuntu,
  removed in previous LTS.
* prepare-release: declare the packages needed as source build deps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
      struct stat St;
55
55
      if (stat(Dir->d_name,&St) != 0)
56
56
      {
57
 
         chdir(StartDir.c_str());
 
57
         _error->Errno("stat",_("Unable to stat %s."),Dir->d_name);
58
58
         closedir(D);
59
 
         return _error->Errno("stat",_("Unable to stat %s."),Dir->d_name);
 
59
         if (chdir(StartDir.c_str()) != 0)
 
60
            return _error->Errno("chdir", _("Unable to change to %s"), StartDir.c_str());
 
61
         return false;
60
62
      }
61
63
      
62
64
      // Grab the package name
115
117
      Erase(Dir->d_name,Pkg,Ver,St);
116
118
   };
117
119
   
118
 
   chdir(StartDir.c_str());
119
120
   closedir(D);
120
 
   return true;   
 
121
   if (chdir(StartDir.c_str()) != 0)
 
122
      return _error->Errno("chdir", _("Unable to change to %s"), StartDir.c_str());
 
123
   return true;
121
124
}
122
125
                                                                        /*}}}*/