| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| |
| |
| | |
fix gcc warnings and other regressions
See merge request apt-team/apt!582
|
| | |
| |
| |
| |
| |
| |
| |
| | |
We added a close(iFd) after assigning iFd to Fd which
is wrong.
Regression-Of: e79f9bb22375fd72330b534e17dcd3ceace432e8
Closes: #1136441
|
| | |
| |
| |
| |
| |
| |
| | |
We inadvertently changed a CreateDynamicMMap call.
Fix that function instead.
Regression-of: 23dba65f031954df896bc3c6dfb1a9705574886b
|
| |/ |
|
| |\
| |
| |
| |
| | |
Warn if auth.conf is unreadable (LP: #2150631)
See merge request apt-team/apt!580
|
| |/
|
|
| |
LP: #2150631 is a bug where trying to access an authentication-locked repo without root sends a 401 error, which is misleading since the authentication information could be in auth.conf.d, but just inaccessible without root. This adds a warning in that scenario, as well as an integration test.
|
| |\
| |
| |
| |
| | |
solver3: Follow installed Suggests earlier
See merge request apt-team/apt!581
|
| |/
|
|
|
|
|
| |
We accidentally followed "keepauto" and friends earlier, breaking
`apt why` for suggested packages.
Reported-By: uau on IRC
|
| | |
|
| |\
| |
| |
| |
| | |
Avoid ABI break for transaction cancellation
See merge request apt-team/apt!578
|
| |/ |
|
| |\
| |
| |
| |
| | |
Require sqv for builds on supported archs and !pkg.apt.nosqv
See merge request apt-team/apt!577
|
| |/
|
|
|
|
| |
This forces dependency solvers to install sqv, avoiding builds with
gpgv instead (which we did intentionally before to hack Ubuntu buildd
setup).
|
| |\
| |
| |
| |
| | |
apt-pkg: methods: fixed many minor memleaks
See merge request apt-team/apt!568
|
| |/
|
|
| |
Static analysis has shown that there are many minor memleaks.
|
| |\
| |
| |
| |
| | |
Fix bug reference in changelog
See merge request apt-team/apt!569
|
| |/ |
|
| |\
| |
| |
| |
| | |
Fix issues that can lead to "apt update" being stuck with outdated lists
See merge request apt-team/apt!559
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
If apt update is interrupted during transaction commit, the system may
end up with updated InRelease that does not match the other list files,
which can cause apt to believe that the lists are already up-to-date when
they are in fact not.
Closes: #1078608
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Ongoing Run can be cancelled by returning false from ::Pulse(). In this case
the items would still be called pkgAcquire::Item::Finished() as usual, causing
pkgAcqMetaClearSig to commit the incomplete transaction anyway as at that
point it's still Started and has no errors.
Add a pkgAcquire::Item::Cancelled() method and use it in pkgAcqMetaClearSig
to abort the transaction.
Closes: #1078608
|
| |/ |
|
| |\
| |
| |
| |
| | |
sources.list(5): Document Contact/Bugs/Description fields
See merge request apt-team/apt!572
|
| |/
|
|
|
|
|
| |
Document Contact, Bugs, and Description fields as the recommended
way to inform users about a repository and how to contact upstream.
Thanks: josch for the suggestion
|
| |\
| |
| |
| |
| | |
sources.list(5): th[r]ough typo
See merge request apt-team/apt!576
|
| |/ |
|
| |\
| |
| |
| |
| | |
apt: modernize to make_unique C++17
See merge request apt-team/apt!567
|
| |/
|
|
|
|
|
| |
References:
- https://stackoverflow.com/questions/79700634/pros-and-cons-of-make-unique-vs-direct-constructor-call-in-c17
- https://towardsdev.com/why-std-make-unique-beats-new-in-modern-c-7e2ba653737e
- https://www.sololearn.com/en/Discuss/3334779/where-make_unique-is-better-than-unique_ptrraw-pointer
|
| |\
| |
| |
| |
| | |
apt: push to emplace C++11 if possible
See merge request apt-team/apt!566
|
| |/
|
|
|
|
| |
References:
- https://www.reddit.com/r/cpp_questions/comments/pm63yx/why_clangtidy_says_use_emplace_back_instead_of/
- https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-emplace.html
|
| |\
| |
| |
| |
| | |
apt-pkg/acquire: use range based for loop C++17
See merge request apt-team/apt!564
|
| |/ |
|
| |\
| |
| |
| |
| | |
apt: funcs called with a string literal consisting of a single character
See merge request apt-team/apt!563
|
| |/
|
|
|
|
|
|
| |
Benchmark:
- https://stackoverflow.com/questions/62058906/why-my-performance-benchmark-gives-me-wrong-results
References:
- https://clang.llvm.org/extra/clang-tidy/checks/performance/prefer-single-char-overloads.html
|
| |\
| |
| |
| |
| | |
hashes: Use std::span instead of std::basic_string_view
See merge request apt-team/apt!562
|
| |/
|
|
|
|
|
|
|
| |
std::basic_string_view should not be initialized locally, only
in the std library. Replace it with a simple span instead.
This should fix compilation with LLVM 18+.
Supersedes: https://salsa.debian.org/apt-team/apt/-/merge_requests/511
|
| |\
| |
| |
| |
| | |
fix apt patterns parsing bug for pre-depends
See merge request apt-team/apt!549
|
| |/ |
|
| |\
| |
| |
| |
| | |
Drop warning about unstable CLI interface
See merge request apt-team/apt!556
|
| |/
|
|
|
|
|
|
| |
A specific CLI version can now be requested using the --cli-version
flag, and old versions can be deprecated on a reasonable cadence.
Therefore, a warning is no longer necessary.
Gbp-Dch: full
|
| |\
| |
| |
| |
| | |
Scale `apt history-list` to the screen width
See merge request apt-team/apt!555
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| |
| |
| | |
Fix Phased-Update-Percentage probability mistake
See merge request apt-team/apt!560
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously a package with Phased-Update-Percentage: n would be updated
with probability (n + 1)/101 instead of n/100. For example, a package
with Phased-Update-Percentage: 0 could still be updated even though it
shouldn’t, and a package with Phased-Update-Percentage: 1 would be
installed almost twice as much as it should be. Correct the erroneous
math.
Note that libstdc++ implements std::uniform_int_distribution in such a
way that for a given seed, changing dist(0, 100) to dist(0, 99) has
the effect of decreasing each sample by 0 or 1; therefore, this patch
will not randomly trigger extra phased updates that had previously
been excluded.
Fixes: c5bc86d45e003905ef411146e66b414d26fb1ff8
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Observing a testrun carefully included:
./test-apt-get-satisfy: 101: [: unexpected operator
Yes, == is not a valid operator here, should just be =.
The result is that we unconditionally skip a single check,
hardly so much the end of the world that we need to tell
everyone as no tests were failed, but no good anyhow.
Fixes: 5e8e69cdd6b512480f3208298725e1e44c80f06e
Gbp-Dch: Ignore
|
| |
|
|
| |
Closes: #1127086
|
| |
|
|
| |
Closes: #1119827
|