Age | Commit message (Collapse) | Author |
|
Original commit message:
Out of memory and similar circumstanzas could cause MMap::Map to fail
and especially the mmap/malloc calls in it. With some additional
checking we can avoid segfaults and similar in such situations – at
least in theory as if this is a real out of memory everything we do to
handle the error could just as well run into a memory problem as well…
But at least in theory (if MMap::Map is made to fail always) we can deal
with it so good that a user actually never sees a failure (as the cache
it tries to load with it fails and is discarded, so that DynamicMMap
takes over and a new one is build) instead of segfaulting.
Closes: 803417
LP: #1815129
|
|
When BuildDepCaches() is called before BuildCaches() we end up
with dereferencing a null pointer cache in the depcache constructor.
Furthermore, in private-search, we check that Cache == NULL, but
only after constructing the policy and records, which does not
work reliably, because the records construction accesses the cache
as well.
LP: #1815187
Test-Case: ./build/bin/apt search -o RootDir=/dev/null foo
|
|
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)
|
|
Reported-By: gcc -Wunused-parameter
Git-Dch: Ignore
|
|
initialized in the constructor." messages (no functional change)
|
|
trying to get a list of included files from them
|
|
- clean up lost atomic cachefiles with 'clean' (Closes: #650513)
|
|
|
|
|
|
|
|
invalid in most cases anyway
|
|
by moving Policy to public again (and therefore after SrcList)
|
|
|
|
- split Open() into submethods to be able to build only parts
- make the OpProgress optional in the Cache buildprocess
|
|
Parts dirs are /etc/apt/{sources.list,apt.conf,preferences}.d
(in the default setup)
|
|
|
|
|
|
|
|
as it does not require a cachefile at all
|
|
|
|
for apt-get update like operations for the frontends and also provides
hooks to run stuff in APT::Update::{Pre,Post}-Invoke
|
|
|
|
- move the RunScripts() code into fileutl.{cc,h}
* apt-pkg/cachefile.cc:
- add support for "APT::Update::{Pre,Post}-Invoke" scripts
|
|
- move the code that does the work from apt-get.cc to pkgCacheFile::ListUpdate()
|
|
Author: jgg
Date: 2002-04-27 04:28:04 GMT
'apt-get update' no longer does 'Building Dependency Tree'.
|
|
Author: jgg
Date: 2001-07-01 20:49:08 GMT
Various bug fixes
|
|
Author: jgg
Date: 2001-03-13 06:51:46 GMT
Alfredo's vendor stuff
|
|
Author: jgg
Date: 2001-02-20 07:03:16 GMT
Join with aliencode
|
|
Author: jgg
Date: 1999-06-24 04:06:30 GMT
Various minor bug fixes
|
|
Author: jgg
Date: 1999-05-04 20:09:48 GMT
Fixed a typo
|
|
Author: jgg
Date: 1999-04-19 02:35:38 GMT
Made apt-cache regenerate its cache in memory
|
|
Author: jgg
Date: 1999-04-18 06:36:36 GMT
Support for memory-only caching
|