~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to apt-pkg/acquire-item.h

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2013-11-01 10:03:06 UTC
  • mfrom: (1.4.73 sid)
  • mto: (1.4.74 sid)
  • mto: This revision was merged to the branch mainline in revision 208.
  • Revision ID: package-import@ubuntu.com-20131101100306-2q5pugg4b93gn9h9
Tags: 0.9.13~exp1
* Improve the API for APT::Upgrade::Upgrade()
* Re-add "Calculating upgrade..." message
* move upgrade releated code into upgrade.{cc,h}
* Move ListUpdate/AquireUpdate into update.{cc,h}
* Add new apt-pkg/install-progress.h with APT::Progress::PackageManager
  progress reporting classes
* Move the status-fd progress reporting out of the pkgDPkgPM class
  and into PackageManagerProgressFd
* Fix reading dpkg --status-fd on reinstalls
* Add new APT::Status-deb822-Fd progress output
* add Acquire::http::Proxy-Auto-Detect to the apt.conf.5 manpage
  (closes: 726597)
* Fix detection when multiarch packages are reported by dpkg as
  disappeared Packages
* test/integration/run-tests: output the failed test names
* Code Cleanup in pkgDPkgPM
* prepare next ABI via #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
* add new pid_t ExecFork(std::set<int> KeepFDs)
* Avoid flickering when "apt-get -o DpkgPM::Progress-Fancy=1" is use
* use sysconf(_SC_OPEN_MAX) in ExecFork()

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    *  overwritten.
84
84
    */
85
85
   void Rename(std::string From,std::string To);
86
 
   
 
86
 
87
87
   public:
88
88
 
89
89
   /** \brief The current status of this item. */
281
281
    *  pkgAcquire::Remove.
282
282
    */
283
283
   virtual ~Item();
 
284
 
 
285
   protected:
 
286
 
 
287
   enum RenameOnErrorState {
 
288
      HashSumMismatch,
 
289
      SizeMismatch,
 
290
      InvalidFormat
 
291
   };
 
292
 
 
293
   /** \brief Rename failed file and set error
 
294
    *
 
295
    * \param state respresenting the error we encountered
 
296
    * \param errorMsg a message describing the error
 
297
    */
 
298
   bool RenameOnError(RenameOnErrorState const state);
284
299
};
285
300
                                                                        /*}}}*/
286
301
/** \brief Information about an index patch (aka diff). */              /*{{{*/
982
997
    *
983
998
    *  \param Version The package version to download.
984
999
    *
985
 
    *  \param StoreFilename A location in which the actual filename of
 
1000
    *  \param[out] StoreFilename A location in which the actual filename of
986
1001
    *  the package should be stored.  It will be set to a guessed
987
1002
    *  basename in the constructor, and filled in with a fully
988
1003
    *  qualified filename once the download finishes.