summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * fix progress-segfault in case of dpkg errors/promptsDavid Kalnischkies2013-10-141-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
| | | * add missing _() around the new "Progress" stringMichael Vogt2013-10-111-1/+1
| | | |
| | * | fix logic for finding what package dpkg means in the --status-fd and only ↵Michael Vogt2013-10-151-4/+19
| | |/ | | | | | | | | | send out short packagenames
| * | re-add APT::Keep-Fds:: for the dpkg status-fd in dpkgpm.cc as we always need ↵Michael Vogt2013-10-141-0/+6
| | | | | | | | | | | | this
| * | rename APT::Progress::Packagemanager Started->Start, Finished->Stop to match ↵Michael Vogt2013-10-141-6/+4
| | | | | | | | | | | | pkgAcquireStatus
| * | add APT::Progress::PackageManager::Pulse()Michael Vogt2013-10-131-2/+3
| | |
| * | move the status-fd progress reporting out of the pkgDPkgPM class, at this ↵Michael Vogt2013-10-131-75/+24
| | | | | | | | | | | | point, breaks ABI/API, lets see what we can do about this
| * | move common code into PackageManager::StatusChanged()Michael Vogt2013-10-111-2/+3
| | |
| * | first iteration of install progress refactorMichael Vogt2013-10-111-91/+20
| |/
| * apt-pkg/deb/dpkgpm.cc: fix off-by-one in SetupTerminalScrollArea resetMichael Vogt2013-10-081-1/+1
| |
| * fix off-by-one error in pkgDPkgPM::SetupTerminalScrollArea()Michael Vogt2013-10-071-1/+1
| |
| * use Dpkg::Progress-Fancy to be consitent with Dpkg::ProgressMichael Vogt2013-10-071-1/+1
| |
| * add -o DpkgPM::Progress-Fancy for better dpkg progress output on vt100+ ↵Michael Vogt2013-10-071-9/+79
| | | | | | | | terminals
| * make dpkg progress slightly nicerMichael Vogt2013-10-021-3/+17
| |
| * fix multiarch status-fd progress calculationMichael Vogt2013-09-071-24/+24
| |
| * Merge remote-tracking branch 'mvo/feature/install-progress' into debian/sidMichael Vogt2013-08-281-1/+16
| |\
| | * Add DPkgPM::Progress for terminal install progressMichael Vogt2013-07-111-1/+16
| | |
* | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2013-08-171-5/+15
|\| | | | | | | | | | | | | | | | | Conflicts: cmdline/apt-get.cc debian/changelog
| * | allow Pre-Install-Pkgs hooks to get info over an FD != stdinDavid Kalnischkies2013-08-161-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
* | | fix merge artifactMichael Vogt2013-08-151-5/+0
| | |
* | | Merge branch 'debian/sid' into debian/experimentalMichael Vogt2013-08-151-34/+73
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apt-pkg/contrib/strutl.cc apt-pkg/deb/dpkgpm.cc configure.ac debian/changelog doc/po/apt-doc.pot po/apt-all.pot 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/uk.po po/vi.po po/zh_CN.po po/zh_TW.po test/integration/framework test/integration/test-bug-602412-dequote-redirect test/integration/test-ubuntu-bug-346386-apt-get-update-paywall test/interactive-helper/aptwebserver.cc test/interactive-helper/makefile
| * | use our _error stack to generate openpty errorsDavid Kalnischkies2013-08-121-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
| * | do not try to chown if not run as rootDavid Kalnischkies2013-08-121-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
| * | fix -Wall errorsMichael Vogt2013-08-081-2/+4
| | |
| * | Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt2013-07-281-0/+1
| |\ \
| | * | fix some coverity chroot() releated warningsMichael Vogt2013-07-261-0/+1
| | |/
| * / fix if-clause to generate hook-info for 'rc' packagesDavid Kalnischkies2013-07-161-1/+1
| |/ | | | | | | | | | | | | | | | | The code incorrectly skips printing of current version information, if the package has no current version (for APT, but for dpkg as it is the case for packages which are removed but not purged) by using an unintended "else if" rather than an "if". Closes: 717006
| * Version 3 for DPkg::Pre-Install-Pkgs with MultiArch infoDavid Kalnischkies2013-07-111-21/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds on top of Version 2 to all displayed version numbers the architecture as well as the MultiArch flag for consumption by the hooks. Most of the time the architecture will be the same for both versions displayed, but packages might change from "all" to "any" (or back) between versions so we can't display the architecture for packages. Pseudo-Format for Version 3: <name> <version> <arch> <m-a-flag> <compare> <version> <arch> <m-a-flag> Examples: stuff - - none < 1 amd64 none **CONFIGURE** libsame 1 i386 same < 2 i386 same **CONFIGURE** stuff 2 i386 none > 1 i386 none **CONFIGURE** libsame 2 i386 same > - - none **REMOVE** toolkit 1 all foreign > - - none **REMOVE** Closes: #712116
* | merged debian-sid branch and resolved conflictsMichael Vogt2013-04-231-10/+7
|\|
| * various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-10/+7
| |
* | print error in log if tcgetattr() fails instead of writingMichael Vogt2013-01-041-1/+6
| | | | | | a empty file
* | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-12-271-1/+1
|/ | | | - use tcgetattr() on STDOUT instead of STDIN so that term.log works for redirected stdin
* change permissions of /var/log/apt/term.log to 0640 (LP: #975199)Michael Vogt2012-12-131-1/+1
|
* handle packages without a mandatory architecture (debian-policy §5.3)David Kalnischkies2012-09-091-2/+6
| | | | | by introducing a pseudo-architecture 'none' so that the small group of users with these packages can get right of them without introducing too much hassle for other users (Closes: #686346)
* report the package name with architecture in the "no file" error messageDavid Kalnischkies2012-09-031-1/+1
|
* merge from the lp:~mvo/apt/mvo branchMichael Vogt2012-04-201-1/+5
|\
| * cherry pick r1975 from lp:~ubuntu-core-dev/apt/ubuntuMichael Vogt2012-04-201-0/+1
| |
| * * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-03-271-1/+4
| | | | | | | | | | - do not crash if (*I).Pkg is NULL (LP: #939867)
* | use a static FileFd::Write overload to reduce duplication of write()-retry codeDavid Kalnischkies2012-04-111-27/+7
| |
* | make these retry_write methods static so that they don't end up as symbolsDavid Kalnischkies2012-03-221-1/+2
| |
* | * methods/rred.cc:David Kalnischkies2012-03-201-8/+28
|/ | | | | | | | | | | - check return of writev() as gcc recommends * methods/mirror.cc: - check return of chdir() as gcc recommends * apt-pkg/deb/dpkgpm.cc: - check return of write() a gcc recommends * apt-inst/deb/debfile.cc: - check return of chdir() as gcc recommends * apt-inst/deb/dpkgdb.cc: - check return of chdir() as gcc recommends
* set char-limits for the scanf parsing previous crash-reportsDavid Kalnischkies2012-03-051-1/+1
|
* fix a bunch of cppcheck "(warning) Member variable '<#>' is notDavid Kalnischkies2012-03-041-1/+3
| | | | initialized in the constructor." messages (no functional change)
* handle a SIGINT in all modes as a break after the currently runningDavid Kalnischkies2012-03-041-3/+4
| | | dpkg transaction instead of ignoring it completely
* save the universe by not printing messages about apport if a packageDavid Kalnischkies2012-02-111-0/+6
| | | with this name is not installed (Closes: #619646)
* call dpkg --assert-multi-arch with execvp instead of execvDavid Kalnischkies2012-02-091-1/+1
|
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-01-301-2/+36
| | | | - fix crash when a package is in removed but residual config state (LP: #923807)
* ensure that dpkg binary doesn't have the chroot-directory prefixedDavid Kalnischkies2012-01-291-1/+11
|
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-291-17/+15
| | | - chroot if needed before dpkg --assert-multi-arch
* * apt-pkg/cacheiterators.h:David Kalnischkies2012-01-191-2/+2
| | | | | | | | | - return the correct version arch for all+foreign, too The flag is interpreted at a few other places in different styles so this commit ensures that the flag check is consistent everywhere (checking for Same in flag style is a bit too much as it isn't used in combination with others anyway, but who knows and just for consistency)