summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/progress.h
Commit message (Collapse)AuthorAgeFilesLines
* Show absolute time while waiting for lock instead of %, rework messageJulian Andres Klode2020-03-061-0/+1
| | | | | | | | | | | | | | | | | | | | | Showing a percentage for a timeout is pretty non-standard. Rework the progress class so it can show an absolute progress (currently hardcoded to use seconds as a unit). If there is a timeout (aka if it's not the maximum long long unsigned -1llu), then show the timeout, otherwise just count up seconds, e.g. Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 33842 (apt)... 1/120s or Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 33842 (apt)... 1s Also improve the error message to use "Waiting for cache lock: %s" instead of "... (%s)", as having multiple sentences inside parenthesis is super weird, as is having two closing parens. We pass the information via _config, as that's reasonably easy and avoids ABI hackage. It also provides an interesting debugging tool for other kinds of progress.
* apt-pkg: default visibility to hiddenJulian Andres Klode2020-02-261-2/+2
|
* Run unifdef -DAPT_{8,9,10,15}_CLEANER_HEADERSJulian Andres Klode2019-06-121-3/+0
|
* Add 'explicit' to most single argument constructorsJulian Andres Klode2019-04-301-2/+2
| | | | | | | | | | | This prevents implicit conversions that we do not want, such as having a FileFd* being converted to a debListParser. Two cases are not yet handled because they require changes in code using them: 1. The classes in hashes.h 2. The URI class - this one is used quite a lot
* Remove obsolete RCS keywordsGuillem Jover2018-05-071-1/+0
| | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-2/+1
| | | | | | | | | | | | | 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.
* add c++11 override marker to overridden methodsDavid Kalnischkies2015-08-101-2/+3
| | | | | | | | | 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
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-1/+1
|
* revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies2011-12-131-0/+4
| | | | | The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
* do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-191-10/+8
|
* Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-8/+8
| | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* fix SubProgress to accept a Percent parameter to update the CurrentDavid Kalnischkies2011-05-101-2/+1
| | | | with the text as otherwise the update will be ignored
* * removed the remaining #ifdef __GNUG__ that are no longer requiredMichael Vogt2006-10-021-2/+0
|
* * removed the pragma messMichael Vogt2006-10-021-1/+0
|
* * applied parts of the string speedup patch from debian #319377 (ABI change)Michael Vogt2005-11-231-2/+2
|
* G++3 fixes from RandolphArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 2001-05-07 05:05:13 GMT G++3 fixes from Randolph
* Dsync mergeArch Librarian2004-09-201-2/+1
| | | | | | Author: jgg Date: 1999-01-18 06:20:07 GMT Dsync merge
* SyncArch Librarian2004-09-201-2/+6
| | | | | | Author: jgg Date: 1998-10-02 04:39:42 GMT Sync
* More progress updatesArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1998-08-26 04:52:23 GMT More progress updates
* Big changesArch Librarian2004-09-201-3/+5
| | | | | | Author: jgg Date: 1998-08-23 03:52:22 GMT Big changes
* Generic progress meterArch Librarian2004-09-201-0/+84
Author: jgg Date: 1998-07-21 05:33:18 GMT Generic progress meter