summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-231-91/+147
|\| | | | | | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc apt-pkg/acquire-item.h apt-pkg/cachefilter.h configure.ac debian/changelog
| * rework PTY magic to fix stair-stepping on kfreebsdDavid Kalnischkies2014-09-081-53/+106
| | | | | | | | | | | | | | | | | | | | | | | | A pty slave we have got from openpty can only be used for one dpkg child, if we give it to a second child on kfreebsd setting TIOCSCTTY fails causing the output to be stair-stepped from now on. By switching the code to creating a master and opening a new slave in the child for each child we can fix this glitch, so that at least the master remains stable. Closes: 759684
| * fix progress report for upgrade and reinstallDavid Kalnischkies2014-09-081-38/+41
| | | | | | | | | | | | | | | | | | | | | | APT treats upgrades like installs and dpkg is very similar in this, but prints still a slightly different processing message indicating that it is really an upgrade which we hadn't parsed so far, but this wasn't really visible as we quickly moved on to a 'known' state. More problematic was the reinstall case as apt hadn't recognized this for the package name detection, so that reinstalls had no progress since we introduced MultiArch.
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-09-051-6/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/acquire-item.cc configure.ac debian/changelog doc/apt-verbatim.ent doc/po/apt-doc.pot doc/po/de.po doc/po/es.po doc/po/fr.po doc/po/it.po doc/po/ja.po doc/po/pt.po po/ar.po po/ast.po po/bg.po po/bs.po po/ca.po po/cs.po po/cy.po po/da.po po/de.po po/dz.po po/el.po po/es.po po/eu.po po/fi.po po/fr.po po/gl.po po/hu.po po/it.po po/ja.po po/km.po po/ko.po po/ku.po po/lt.po po/mr.po po/nb.po po/ne.po po/nl.po po/nn.po po/pl.po po/pt.po po/pt_BR.po po/ro.po po/ru.po po/sk.po po/sl.po po/sv.po po/th.po po/tl.po po/tr.po po/uk.po po/vi.po po/zh_CN.po po/zh_TW.po test/integration/test-ubuntu-bug-346386-apt-get-update-paywall
| * * apt-pkg/deb/dpkgpm.cc:Michael Vogt2014-09-021-6/+7
| | | | | | | | | | | | | | - update string matching for dpkg I/O errors. (LP: #1363257) - properly parse the dpkg status line so that package name is properly set and an apport report is created. Thanks to Anders Kaseorg for the patch. (LP: #1353171)
* | readd pkgPackageManager::Go() to not break APIMichael Vogt2014-06-181-7/+1
| |
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-06-181-1/+2
|\| | | | | | | | | Conflicts: debian/changelog
| * Fix warning about uninitialized variableMichael Vogt2014-05-281-1/+2
| | | | | | | | Reported-By: clang++ -Werror
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-05-071-55/+65
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/cachefilter.h apt-pkg/contrib/fileutl.cc apt-pkg/contrib/netrc.h apt-pkg/deb/debsrcrecords.cc apt-pkg/init.h apt-pkg/pkgcache.cc debian/apt.install.in debian/changelog
| * Only do openpty() if both stdin/stdout are terminalsMichael Vogt2014-04-301-5/+6
| | | | | | | | Closes: 746434
| * reduce delta from ubuntuMichael Vogt2014-04-251-1/+1
| |
| * do not crash on SIGPIPE in pkgDPkgPM::RunScriptsWithPkgs()Michael Vogt2014-04-011-7/+18
| | | | | | | | | | If a external command closes the PIPE unexpectedly, do not crash in pkgDPkgPM::RunScriptsWithPkgs but ignore the SIGPIPE.
| * Add new Debug::RunScripts optionMichael Vogt2014-04-011-0/+4
| | | | | | | | | | This debug option will display all scripts that are run by apts RunScripts and RunScriptsWithPkgs helpers.
| * ensure proper teardown in dpkg error casesDavid Kalnischkies2014-03-221-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | We have to properly close our pseudo terminals even in error cases before we call post-invoke scripts. This is done now by breaking from the dpkg calling loop instead of copying the handling, which did it in the wrong order before. This also ensures that our state file is written in error cases to record autobit and co as this was forgotten before. Closes: 738969
| * cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-24/+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: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-131-1/+1
| | | | | | | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
* | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2014-02-271-292/+433
|\| | | | | | | | | | | | | | | Conflicts: apt-private/private-list.cc configure.ac debian/apt.install.in debian/changelog
| * Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt2014-01-261-6/+3
| |\ | | | | | | | | | | | | | | | | | | Conflicts: apt-private/private-list.cc doc/po/de.po test/integration/framework
| | * correct some style/performance/warnings from cppcheckDavid Kalnischkies2014-01-161-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | The most "visible" change is from utime to utimensat/futimens as the first one isn't part of POSIX anymore. Reported-By: cppcheck Git-Dch: Ignore
| * | do not ignore ioctl(TIOCSCTTY) errorsMichael Vogt2014-01-181-9/+19
| |/ | | | | | | | | Show a proper error message when a ioctl() in dpkgpm.cc fails. Also simply StartPtyMagic() a bit.
| * Merge branch 'debian/sid' into bugfix/bts731738-fancy-progessMichael Vogt2013-12-281-3/+7
| |\ | | | | | | | | | | | | Conflicts: apt-pkg/install-progress.cc
| | * Fix conffile prompt regression (LP: #1260297)Michael Vogt2013-12-121-3/+7
| | | | | | | | | | | | | | | This fixes a regression in the conffile prompt for the progress-fd and adds a testcase to ensure this does not regress again.
| * | first proof-of-concept for a fix for #731738Michael Vogt2013-12-221-1/+1
| |/
| * merge ubuntus apport reporting changes to reduce diffDavid Kalnischkies2013-11-301-5/+54
| | | | | | | | | | apport reporting is still disabled by default, but it is available in Debian/experimental at the moment and a diff is not a good idea anyway.
| * fix apport report writing (LP: #1254499)Michael Vogt2013-11-291-1/+1
| |
| * reset terminal on error (closes: #730795)Michael Vogt2013-11-291-0/+1
| |
| * fix regression that APT::Keep-Fds is not honored (closes: #730490)Michael Vogt2013-11-281-0/+2
| |
| * add new pid_t ExecFork(std::set<int> KeepFDs) to get rid of the super ugly ↵Michael Vogt2013-10-311-12/+14
| | | | | | | | APT::Keep-Fds hack and also add a new PackageManagerProgressFd::StartDpkg() progress state
| * move pty magic into its own functionsMichael Vogt2013-10-311-88/+95
| |\
| | * move pty stuff into its own functionMichael Vogt2013-10-311-79/+94
| | |
| | * use std::string instead of char* in pkgDPkgPM::ProcessDpkgStatusLine()Michael Vogt2013-10-181-24/+24
| | |
| | * reshuffle the pkgDPkgPM::ProcessDpkgStatusLine() some more to make it more ↵Michael Vogt2013-10-181-77/+91
| | | | | | | | | | | | robust
| | * reshuffle dpkgpm.cc code a bit moreMichael Vogt2013-10-181-28/+40
| | |
| | * add APT::String::Strip(), start cleanup of ProcessDpkgStatusLineMichael Vogt2013-10-181-5/+28
| | |
| * | restore ABI and prepare next ABI via #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt2013-10-311-0/+17
| | | | | | | | | | | | APT_PKG_MINOR >= 13)
| * | extract getDpkgExecutable() and DPkgPM::BuildPackagesProgressMap() out of ↵Michael Vogt2013-10-251-62/+74
| | | | | | | | | | | | the monster long pkgDPkgPM::Go()
| * | make the main loop a while() instead of a for() as I find this (much) easier ↵Michael Vogt2013-10-241-2/+3
| | | | | | | | | | | | to read this way)
| * | fix failing ./test/integration/test-disappearing-packages (thanks Donkult!)Michael Vogt2013-10-221-4/+4
| | |
| * | use Pkg.FullName() in disappearedPkgs and remove duplicated checkMichael Vogt2013-10-221-11/+2
| | |
| * | fix install-progress locationMichael Vogt2013-10-221-2/+1
| | |
| * | restore binary compatiblity with the pkgPackageManager interfaceMichael Vogt2013-10-211-1/+2
| | |
| * | fix apt output ordering and update test to match the new human friendly ↵Michael Vogt2013-10-211-5/+5
| | | | | | | | | | | | messages that include the architecture
| * | re-add missing APT::String::StripMichael Vogt2013-10-181-3/+4
| | |
| * | merged debian/sidMichael Vogt2013-10-181-130/+127
| | |
| * | cleanupMichael Vogt2013-10-181-33/+71
| | |
| * | ensure that short-name -> long-name detection for dpkg-status works for ↵Michael Vogt2013-10-171-1/+4
| | | | | | | | | | | | reinstalls too
| * | Merge branch 'debian/sid' into feature/install-progress-refactorMichael Vogt2013-10-171-10/+36
| |\| | | | | | | | | | | | | Conflicts: apt-pkg/deb/dpkgpm.cc
| | * fix broken clean when apt was finished and ensure that terminal progress is ↵Michael Vogt2013-10-171-9/+19
| | | | | | | | | | | | updated when a new dpkg-loop is entered in dpkgpm.cc
| | * tests, do not send pkgname with arch via the status-fdMichael Vogt2013-10-151-1/+1
| | |
| | * Merge remote-tracking branch 'upstream/debian/sid' into bugfix/bts-726156-2Michael Vogt2013-10-151-3/+3
| | |\