Age | Commit message (Collapse) | Author |
|
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.
|
|
While moving to a more stable clock in 79b61ae I typoed the microsecond
calculation part and copied it all over the place… Julian fixed the
first two instances in 089e6271 and Trent reported the apt-ftparchive
instances leaving one instance in progress (invisible for user though).
A bit ironic that in an attempt to stop "confusing (and amusing) users"
I managed to hide a typo for close to two years doing just that…
Sadly we can't really test this as while "apt-ftparchive generate /dev/null"
is a great interactive test, it is hard to teach our test framework that
the output is "reasonably below an hour" (usually 0s, but on busy test
systems it is perhaps longer…).
Thanks: Trent W. Buck for initial patch
Closes: #950776
References: 79b61ae7673eb6213493e2cb202f0d70c390932d,
089e627153781ae7c320a5a0724c6c70d684b689
|
|
Clock changes while apt is running can result in strange reports
confusing (and amusing) users. Sadly, to keep the ABI for now the
code is a bit more ugly than it would need to be.
|
|
Prompted-by: Jakub Wilk <jwilk@debian.org>
|
|
Reported-By: gcc -Wdouble-promotion
Gbp-Dch: Ignore
|
|
We have no speed problem with handling floats/doubles in our progress
handling, but that shouldn't prevent us from cleaning up the handling
slightly to avoid unclean casting to ints.
Reported-By: gcc -Wdouble-promotion -Wold-style-cast
|
|
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.
|
|
-q is for logging and -qqq (old -qq) basically kills every output expect
errors, so there should be a way of declaring a middleground in which
the output of e.g. 'update' isn't as verbose, but still shows some
things. The test framework was actually making use of by accident as it
ignored the quiet level in output setup for apt before.
Eventually we should figure out some better quiet levels for all tools…
|
|
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)
|
|
Git-Dch: Ignore
Reported-By: gcc -Wpedantic
|
|
Guillem Jover
|
|
- Make "..." translatable to fix inconsistencies in the output
of e.g. apt-get update. While this adds new translatable strings,
not having translations for them will not break anything.
Thanks to Guillem Jover. Closes: #696225
|
|
size are pretty unlikely for now, but we need it for deb
packages which could become bigger than 4GB now (LP: #815895)
|
|
|
|
with the text as otherwise the update will be ignored
|
|
quiet level 1 does this, but also disables other stuff we might want to
test against in a testcase
|
|
|
|
closes: #306937 (thanks to Andreas Henriksson for the patch)
|
|
|
|
- only check time on precent boundaries (seems to make a real difference
on ARM, see debian #398381)
* apt-pkg/contrib/sha256.cc:
- added #pragma interface
* apt-pkg/contrib/sha256.h:
- remove unneeded stdint.h include
* apt-pkg/vendorlist.cc:
- fix qualifier to make it build with -O0
* po/:
- make update-po
|
|
|
|
Author: jgg
Date: 2003-01-11 07:17:04 GMT
Remove \r escape sequence for the sake of gettext
|
|
Author: jgg
Date: 2001-05-07 05:25:13 GMT
G++3 fixes from Randolph
|
|
Author: jgg
Date: 2001-02-20 07:03:16 GMT
Join with aliencode
|
|
Author: jgg
Date: 2000-06-05 04:22:25 GMT
Floating point error. Bug #64394
|
|
Author: jgg
Date: 1998-10-02 04:39:42 GMT
Sync
|
|
Author: jgg
Date: 1998-09-07 05:28:32 GMT
Sync
|
|
Author: jgg
Date: 1998-08-26 04:52:23 GMT
More progress updates
|
|
Author: jgg
Date: 1998-08-23 03:52:22 GMT
Big changes
|
|
Author: jgg
Date: 1998-07-26 04:51:45 GMT
Progress and combined cache generator
|
|
Author: jgg
Date: 1998-07-26 04:49:26 GMT
Progress and combined cache generator
|
|
Author: jgg
Date: 1998-07-22 01:45:38 GMT
Fixed some display glitches
|
|
Author: jgg
Date: 1998-07-21 05:33:18 GMT
Generic progress meter
|