summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
AgeCommit message (Collapse)AuthorFilesLines
2013-11-29reset terminal on error (closes: #730795)Michael Vogt1-0/+1
2013-11-28fix regression that APT::Keep-Fds is not honored (closes: #730490)Michael Vogt1-0/+2
2013-10-31add new pid_t ExecFork(std::set<int> KeepFDs) to get rid of the super ugly ↵Michael Vogt1-12/+14
APT::Keep-Fds hack and also add a new PackageManagerProgressFd::StartDpkg() progress state
2013-10-31move pty magic into its own functionsMichael Vogt2-88/+97
2013-10-31fix some more ABI issues, abicheck is happy nowMichael Vogt1-0/+9
2013-10-31restore ABI and prepare next ABI via #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2-0/+24
APT_PKG_MINOR >= 13)
2013-10-31move pty stuff into its own functionMichael Vogt2-79/+97
2013-10-25extract getDpkgExecutable() and DPkgPM::BuildPackagesProgressMap() out of ↵Michael Vogt2-62/+77
the monster long pkgDPkgPM::Go()
2013-10-24make the main loop a while() instead of a for() as I find this (much) easier ↵Michael Vogt1-2/+3
to read this way)
2013-10-22fix failing ./test/integration/test-disappearing-packages (thanks Donkult!)Michael Vogt1-4/+4
2013-10-22use Pkg.FullName() in disappearedPkgs and remove duplicated checkMichael Vogt1-11/+2
2013-10-22fix install-progress locationMichael Vogt1-2/+1
2013-10-21restore binary compatiblity with the pkgPackageManager interfaceMichael Vogt1-1/+2
2013-10-21fix apt output ordering and update test to match the new human friendly ↵Michael Vogt1-5/+5
messages that include the architecture
2013-10-18re-add missing APT::String::StripMichael Vogt1-3/+4
2013-10-18merged debian/sidMichael Vogt1-130/+127
2013-10-18use std::string instead of char* in pkgDPkgPM::ProcessDpkgStatusLine()Michael Vogt1-24/+24
2013-10-18reshuffle the pkgDPkgPM::ProcessDpkgStatusLine() some more to make it more ↵Michael Vogt1-77/+91
robust
2013-10-18reshuffle dpkgpm.cc code a bit moreMichael Vogt1-28/+40
2013-10-18add APT::String::Strip(), start cleanup of ProcessDpkgStatusLineMichael Vogt1-5/+28
2013-10-18cleanupMichael Vogt2-34/+73
2013-10-17ensure that short-name -> long-name detection for dpkg-status works for ↵Michael Vogt1-1/+4
reinstalls too
2013-10-17Merge branch 'debian/sid' into feature/install-progress-refactorMichael Vogt2-10/+37
Conflicts: apt-pkg/deb/dpkgpm.cc
2013-10-17fix broken clean when apt was finished and ensure that terminal progress is ↵Michael Vogt2-9/+20
updated when a new dpkg-loop is entered in dpkgpm.cc
2013-10-15tests, do not send pkgname with arch via the status-fdMichael Vogt1-1/+1
2013-10-15Merge remote-tracking branch 'upstream/debian/sid' into bugfix/bts-726156-2Michael Vogt1-3/+3
2013-10-15fix logic for finding what package dpkg means in the --status-fd and only ↵Michael Vogt1-4/+19
send out short packagenames
2013-10-14fix progress-segfault in case of dpkg errors/promptsDavid Kalnischkies1-2/+2
Errors and conffile prompts have a fourth information piece, which the "old" code access which isn't provided by the "new" one. This isn't checking if the messages are really well-formed, so it could still segfault on misformed messages, but this code needs more work anyway, so one step at a time. Closes: 726047
2013-10-14re-add APT::Keep-Fds:: for the dpkg status-fd in dpkgpm.cc as we always need ↵Michael Vogt1-0/+6
this
2013-10-14rename APT::Progress::Packagemanager Started->Start, Finished->Stop to match ↵Michael Vogt1-6/+4
pkgAcquireStatus
2013-10-13add APT::Progress::PackageManager::Pulse()Michael Vogt1-2/+3
2013-10-13move the status-fd progress reporting out of the pkgDPkgPM class, at this ↵Michael Vogt2-78/+28
point, breaks ABI/API, lets see what we can do about this
2013-10-11move common code into PackageManager::StatusChanged()Michael Vogt1-2/+3
2013-10-11add missing _() around the new "Progress" stringMichael Vogt1-1/+1
2013-10-11first iteration of install progress refactorMichael Vogt2-91/+21
2013-10-08apt-pkg/deb/dpkgpm.cc: fix off-by-one in SetupTerminalScrollArea resetMichael Vogt1-1/+1
2013-10-08Merge remote-tracking branch 'mvo/feature/dpkg-progress-fancy' into debian/sidMichael Vogt2-9/+81
2013-10-07fix off-by-one error in pkgDPkgPM::SetupTerminalScrollArea()Michael Vogt1-1/+1
2013-10-07use Dpkg::Progress-Fancy to be consitent with Dpkg::ProgressMichael Vogt1-1/+1
2013-10-07add -o DpkgPM::Progress-Fancy for better dpkg progress output on vt100+ ↵Michael Vogt2-9/+81
terminals
2013-10-05Merge remote-tracking branch 'mvo/bugfix/dpkg-progress-multiarch' into ↵Michael Vogt1-27/+41
debian/sid
2013-10-02make dpkg progress slightly nicerMichael Vogt1-3/+17
2013-09-26don't strip :any from dependencies in single-archDavid Kalnischkies1-4/+2
The parser goes a bit to far by stripping :any from dependencies in a single architecture environment. the flag "Multi-Arch: allowed" doesn't care any architecture restrictions in that case (as in single arch everything is native), but it still limits the possible versions statisfying the dependency so stripping :any over-simplifies in upgrade situations from "Multi-Arch: none" to "Multi-Arch: allowed". Closes: 723586
2013-09-07fix multiarch status-fd progress calculationMichael Vogt1-24/+24
2013-08-28Merge remote-tracking branch 'mvo/feature/install-progress' into debian/sidMichael Vogt2-1/+18
2013-08-16allow Pre-Install-Pkgs hooks to get info over an FD != stdinDavid Kalnischkies1-5/+15
This adds ::InfoFD option alongside the ::Version one to request sending the information to the specified FD, by default it is STDIN as it was the case before. The environment variable APT_HOOK_INFO_FD contains the FD the data is on as a confirmation that the APT version used understood the request. Allowing the hook to choose the FD is needed/helpful e.g. for shellscripts which have a hard time accessing FDs above 9 (as >= 10 are usually used internally by them) Closes: #671728
2013-08-15init the pkgTagFile with the size of the Release fileDavid Kalnischkies1-1/+1
Release files are basically one big Section, so we might safe some Resize circles by starting with the filesize. Git-Dch: Ignore
2013-08-12use our _error stack to generate openpty errorsDavid Kalnischkies1-7/+13
While we don't want these error messages on our usual stack, we can use our usual infrastructure to generate an error message with all the usual bells like errno and strerror attached. Git-Dch: Ignore
2013-08-12do not try to chown if not run as rootDavid Kalnischkies1-8/+9
If this code is run as non-root we are in a special situation (e.g. in our testcases) where it is obvious that we can't enforce user/group on any file, so skip this code altogether instead of bugging users with an error message – which we also switch to a warning as a failure to open the file is "just" a warning, so the 'wrong' owner shouldn't be that much of an issue. The file is still handled with chmod, so all the security we can enforce is still enforced of course, which also gets a warning if it fails. Git-Dch: Ignore
2013-08-08fix -Wall errorsMichael Vogt1-2/+4