summaryrefslogtreecommitdiff
path: root/apt-private/private-install.cc
Commit message (Collapse)AuthorAgeFilesLines
* check for available space, excluding root reserved blocksDavid Kalnischkies2014-10-151-30/+3
| | | | | | | | | | | We are checking the space requirements for ages, but the check uses the free blocks count, which includes the blocks reserved for usage by root. Now that we use an unprivileged user it has no access to these blocks anymore – and more importantly these blocks are a reserve, they shouldn't be used by apt without special encouragement by the user as it would be bad to have dpkg run out of diskspace and maintainerscripts like man-db skip certain actions if not enough space is available freely.
* ensure partial dirs are 0700 and owned by _apt:rootDavid Kalnischkies2014-10-071-3/+3
| | | | | | | | | Reworks the API involved in creating and setting up the fetcher to be a bit more pleasent to look at and work with as e.g. an empty string for no lock isn't very nice. With the lock we can also stop creating all our partial directories "just in case". This way we can also be a bit more aggressive with the partial directory itself as with a lock, we know we will gone need it.
* adapt to the new CacheSetHelper APIDavid Kalnischkies2014-09-271-2/+2
| | | | Git-Dch: Ignore
* mark pkg(All|Dist)Upgrade as deprecatedDavid Kalnischkies2014-09-271-8/+4
| | | | | | | | The comment above their definition marks them already as such, so this is only a formalisation of the deprecation and fixes the occurances we have in our own code together with removing a magic number. Git-Dch: Ignore
* fix progress output for (dist-)upgrade calculationDavid Kalnischkies2014-09-271-4/+7
| | | | | | | | | | | | | | | | | Previously, we had a start and a done of the calculation printed by higher-level code, but this got intermixed by progress reporting from an external solver or the output of autoremove code… The higherlevel code is now only responsible for instantiating a progress object of its choosing (if it wants progress after all) and the rest will be handled by the upgrade code. Either it is used to show the progress of the external solver or the internal solver will give some hints about its overall progress. The later isn't really a proper progress as it will jump forward after each substep, but that is at least a bit better than before without any progress indication. Fixes also the 'strange' non-display of this progress line in -q=1, while all others are shown, which is reflected by all testcase changes.
* Merge remote-tracking branch 'donkult/debian/sid' into debian/experimentalMichael Vogt2014-06-181-7/+16
|\ | | | | | | | | Conflicts: apt-private/private-install.cc
| * do not call resolver twice on (dist-)upgradeDavid Kalnischkies2014-06-181-6/+16
| |
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-181-1/+143
|\| | | | | | | | | Conflicts: debian/changelog
| * separate implementation from declaration of TryTo{Install,Remove}David Kalnischkies2014-06-091-0/+141
| | | | | | | | Git-Dch: Ignore
| * if Resolver fails, do not continue even if not brokenDavid Kalnischkies2014-05-301-1/+2
| | | | | | | | | | | | | | This can happen if the request is already a well-formed request all by itself (e.g. the package has no dependencies), but the resolver found a reason to not accept it as solution. Our edsp 'dump' solver e.g. shouldn't be able to trigger install, which it does otherwise.
* | fix some compile errors in the now enabled #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2014-05-071-0/+1
| | | | | | | | APT_PKG_MINOR < 13)
* | move pkgSourceList::AddMetaIndex() into a private subclass until we decide ↵Michael Vogt2014-05-071-1/+3
| | | | | | | | about a good API
* | rename pkgSourceList::Add() to pkgSourceList::AddMetaIndex()Michael Vogt2014-05-071-1/+1
| |
* | avoid deb specific code in private-installMichael Vogt2014-04-281-7/+14
| |
* | WIP local deb installMichael Vogt2014-04-281-1/+18
|/
* msgstr with elipses need three dotsDavid Kalnischkies2014-03-131-1/+1
| | | | | fixes some messages and their translation so that all of them have three dots for messages with an elipse. Many translations already had this.
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-40/+28
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-1/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* restore ABI and prepare next ABI via #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2013-10-311-22/+13
| | | | APT_PKG_MINOR >= 13)
* fix install-progress locationMichael Vogt2013-10-221-2/+1
|
* add APT::Status-deb822-FdMichael Vogt2013-10-211-3/+8
|
* re-add APT::Keep-Fds:: for the dpkg status-fd in dpkgpm.cc as we always need ↵Michael Vogt2013-10-141-0/+3
| | | | this
* move the status-fd progress reporting out of the pkgDPkgPM class, at this ↵Michael Vogt2013-10-131-2/+22
| | | | point, breaks ABI/API, lets see what we can do about this
* do not ++ on erased package pointers in autoremoveDavid Kalnischkies2013-10-031-3/+7
| | | | | | | Symptom: In an Ubuntu precise chroot (like on travis-ci) test-bug-613420-new-garbage-dependency segfaults in a std::set operator++ on an iterator we have erased previously (but not if run under gdb of course)
* put fetch errors in 'source' on our errorstackDavid Kalnischkies2013-10-031-67/+5
| | | | | | | | | refactor the fetching process so that it looks more like the others we have in the hope that we can reuse code in the future. This is a soft interface change as 'source' previously printed errors directly on stderr, while it will now push it onto our usual error stack.
* print-uris prints regardless of quiet-level againDavid Kalnischkies2013-09-261-1/+1
| | | | | | | | | | While the InstallPackages code was moved from apt-get into the private library the output was moved from (std::)cout to c1out which isn't shown in quiet level 2 (and above), so we flip back to std::cout to ensure that it is always printed as you are not going to use --print-uris if you don't want to see the uris… Closes: 722207
* fix vim-style foldmarkerDavid Kalnischkies2013-09-031-8/+2
| | | | Git-Dch: Ignore
* allow pkg manipulation in the upgrade/dist-upgrade commandline, e.g. apt-get ↵Michael Vogt2013-08-271-23/+39
| | | | dist-upgrade 2vcard- 4g8+
* use SPtr<pkgProblemResolver> to simply codeMichael Vogt2013-08-271-8/+1
|
* squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-121-0/+852
experimental