summaryrefslogtreecommitdiff
path: root/apt-pkg/install-progress.h
AgeCommit message (Collapse)AuthorFilesLines
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode1-2/+2
This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
2016-08-23install-progress: Call the real ::fork() in our fork() methodJulian Andres Klode1-1/+1
We basically called ourselves before, creating an endless loop. Reported-By: clang
2015-09-30Fix select timeout to be 50msec instead of 0.5msecMichael Vogt1-1/+1
Closes: #799857
2015-08-10add c++11 override marker to overridden methodsDavid Kalnischkies1-14/+14
C++11 adds the 'override' specifier to mark that a method is overriding a base class method and error out if not. We hide it in the APT_OVERRIDE macro to ensure that we keep compiling in pre-c++11 standards. Reported-By: clang-modernize -add-override -override-macros Git-Dch: Ignore
2015-08-10make all d-pointer * const pointersDavid Kalnischkies1-5/+5
Doing this disables the implicit copy assignment operator (among others) which would cause hovac if used on the classes as it would just copy the pointer, not the data the d-pointer points to. For most of the classes we don't need a copy assignment operator anyway and in many classes it was broken before as many contain a pointer of some sort. Only for our Cacheset Container interfaces we define an explicit copy assignment operator which could later be implemented to copy the data from one d-pointer to the other if we need it. Git-Dch: Ignore
2015-08-10apply various style suggestions by cppcheckDavid Kalnischkies1-2/+2
Some of them modify the ABI, but given that we prepare a big one already, these few hardly count for much. Git-Dch: Ignore
2015-06-16add d-pointer, virtual destructors and de-inline de/constructorsDavid Kalnischkies1-1/+10
To have a chance to keep the ABI for a while we need all three to team up. One of them missing and we might loose, so ensuring that they are available is a very tedious but needed task once in a while. Git-Dch: Ignore
2014-09-30mark private methods as hiddenDavid Kalnischkies1-1/+1
We are the only possible users of private methods, so we are also the only users who can potentially export them via using them in inline methods. The point is: We don't need these symbols exported if we don't do this, so marking them as hidden removes some methods from the API without breaking anything as nobody could have used them. Git-Dch: Ignore
2014-09-27fix: Member variable 'X' is not initialized in the constructor.David Kalnischkies1-3/+2
Reported-By: cppcheck Git-Dch: Ignore
2014-04-14force fancy progressbar redraw on window size changeDavid Kalnischkies1-0/+3
We always reacted on the size change, but the bar is only redraw if the precentage changes, which can take quiet a while in big upgrades, so with a bit of refactoring we can now call for a redraw immediate to fix this. This refactor also helps in avoiding obscure pitfalls clangs static analyser was complaining about (namely failure of ioctl resulting in garbage values in the struct).
2014-03-27Add progressbar to "Dpkg::Progress-Fancy"Michael Vogt1-1/+10
A text progressbar is now displayed in the Dpkg::Progress-Fancy mode. It can be turned off via the apt option Dpkg::Progress-Fancy::Progress-Bar=false
2014-03-13warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies1-9/+9
Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
2014-03-13warning: extra ‘;’ [-Wpedantic]David Kalnischkies1-16/+16
Git-Dch: Ignore Reported-By: gcc -Wpedantic
2013-12-28add missing vector includeMichael Vogt1-0/+1
2013-12-28properly handle SIGWINCH in PackageManagerFancy againMichael Vogt1-3/+9
2013-12-22first proof-of-concept for a fix for #731738Michael Vogt1-2/+2
2013-12-06Handle SIGWINCH in APT::Progress-Fancy=1Michael Vogt1-3/+6
2013-10-31use StartDpkg() in PackageManagerProgressDeb822Fd as wellMichael Vogt1-1/+1
2013-10-31add new pid_t ExecFork(std::set<int> KeepFDs) to get rid of the super ugly ↵Michael Vogt1-1/+7
APT::Keep-Fds hack and also add a new PackageManagerProgressFd::StartDpkg() progress state
2013-10-31restore ABI and prepare next ABI via #if (APT_PKG_MAJOR >= 4 && ↵Michael Vogt1-0/+3
APT_PKG_MINOR >= 13)
2013-10-22move install-progress.{cc,h} to apt-pkgMichael Vogt1-0/+137