| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/ |
|
| |\
| |
| |
| |
| | |
Cleanup ABI - make stuff virtual, etc
See merge request apt-team/apt!106
|
| | | |
|
| | |
| |
| |
| |
| | |
Only expose the locations of the hasthables if APT_COMPILING_APT
is set.
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
These were hidden behind the d-pointer previously.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| |
| |
| | |
Pu/tagfile hardening
See merge request apt-team/apt!104
|
| | |
| |
| |
| |
| | |
Check that the index we're going to use is within the size
of the array.
|
| | |
| |
| |
| |
| | |
This fixes a segmentation fault trying to read from nullptr+1,
aka address 1.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
This is not supposed to be done this way, but frankly, since we
abstract away the backend, there's not much else we can do here.
Closes: #949074
|
| |\ \
| |/
|/|
| |
| | |
Type-safe cache / map_pointer
See merge request apt-team/apt!105
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This allows us to extend those in-cache objects with more
data later on without breaking the ABI.
Reserve 12 pointers for private data in the pkgCache class,
and double the size of pools to 24.
|
| | |
| |
| |
| |
| |
| | |
When converting a long offset to a uint32_t to be stored in
the map, check that this is safe to do. If the offset is
negative, or we lose data in the conversion, we lost.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of just using uint32_t, which would allow you to
assign e.g. a map_pointer<Version> to a map_pointer<Package>,
use our own smarter struct that has strict type checking.
We allow creating a map_pointer from a nullptr, and we allow
comparing map_pointer to nullptr, which also deals with comparisons
against 0 which are often used, as 0 will be implictly converted
to nullptr.
|
| | | |
|
| |/
|
|
|
|
| |
This is a first step to a type safe cache, adding typing
information everywhere. Next, we'll replace map_pointer<T>
implementation with a type safe one.
|
| |\
| |
| |
| |
| | |
bash completion: Add autopurge command
See merge request apt-team/apt!75
|
| | | |
|
| |\ \
| | |
| | |
| | |
| | | |
apt-mark: don't lie about successful marks
See merge request apt-team/apt!94
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit fixes an issue where apt-mark would say it had made a change
before actually making the change. For example, when running as a user
without permission to write to extended_states, the package is not
marked but apt-mark claims it is:
~ % apt-mark manual rxvt-unicode
rxvt-unicode set to manually installed.
E: Could not create [...snip...] (13: Permission denied)
E: Failed to write temporary StateFile /var/lib/apt/extended_states
This commit moves reporting of "[package] set to [manually |
automatically] installed" after saving extended_states and confirming it
was successful.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
apt-pkg/srcrecords.cc: 'source' means 'deb-src' in error message
See merge request apt-team/apt!101
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The filename "sources.list" suggests that all contained lines are meant
to describe some package source, so users might not immediately
understand that this refers to 'deb-src' type lines. Please see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919285
for an example of the resulting confusion.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
ABI break: Remove CRC-16
See merge request apt-team/apt!97
|
| | | | | | |
|
| |/ / / / |
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
ABI BREAK: Implement pinning by source package
See merge request apt-team/apt!96
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This implements the src: syntax inside policy, allowing you to
pin by source package. This by default only pins the native
architecuture, use src:pkg:any to pin for all architectures
in your cache.
Closes: #166032
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This adds a simple way to lookup binaries by a source package,
but this adds all binaries into one list, even with different
source versions. Be careful.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bump ABI to 6.0
See merge request apt-team/apt!103
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Remove all code scheduled to be removed after 5.90, and fix
files to include files they previously got from hashes.h
including more headers.
|
| |/ / / / / |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This experiment did not turn out sensibly, as some servers do not
accept credentials when none are expected and fail, so you cannot
mirror such a repository.
This reverts commit c2b9b0489538fed4770515bd8853a960b13a2618.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These allow overriding priorities, however, pins set by SetPriority
for package files will be overriden by calls to InitDefaults().
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
doc: remove "WIP" from apt.8.xml
See merge request apt-team/apt!102
|
| |/ / / /
| | | |
| | | |
| | | |
| | | | |
The current man-page has "(work in progress") for `apt list`.
I feel after more than >5y we can remove this.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Saw those in libseccomp commit, figured should add them
too.
|