summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.7.12.7.1Julian Andres Klode2023-05-245-6/+15
|
* Merge branch 'pu/snapshot-seed' into 'main'Julian Andres Klode2023-05-244-13/+167
|\ | | | | | | | | Seed snapshot servers for well-known hosts See merge request apt-team/apt!293
| * Rework the domain iteration in the host fallbackJulian Andres Klode2023-05-241-3/+18
| | | | | | | | | | | | Separate the determination of the next level domain into its own function and split out the "we found a result" into its own break for improved readability.
| * Ensure that Snapshots: no doesn't get overriden by host-name configJulian Andres Klode2023-05-242-7/+7
| |
| * Seed snapshot servers for well-known hostsJulian Andres Klode2023-05-244-10/+149
|/ | | | | This will attempt to fallback to a per-server setting if we could not determine a value from the release file.
* Release 2.7.02.7.0Julian Andres Klode2023-05-0215-16/+1218
|
* Merge branch 'pu/snapshot' into 'main'Julian Andres Klode2023-05-0217-6/+510
|\ | | | | | | | | Add --snapshot and --update support See merge request apt-team/apt!291
| * Initial support for snapshot servers, apt --snapshot optionJulian Andres Klode2023-05-0212-4/+367
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide snapshot support for offical Debian and Ubuntu archives. There are two ways to enable snapshots for sources: 1. Add Snapshot: yes to your sources file ([snapshot=yes]). This will allow you to specify a snapshot to use when updating or installing using the --snapshot,-S option. 2. Add Snapshot: ID to your sources files to request a specific snapshot for this source. Snapshots are discovered using Label and Origin fields in the Release file of the main source, hence you need to have updated the source at least once before you can use snapshots. The Release file may also declare a snapshots server to use, similar to Changelogs, it can contain a Snapshots field with the values: 1. `Snapshots: https://example.com/@SNAPSHOTID@` where `@SNAPSHOTID@` is a placeholder that is replaced with the requested snapshot id 2. `Snapshots: no` to disable snapshot support for this source. Requesting snapshots for this source will result in a failure to load the source. The implementation adds a SHADOWED option to deb source entries, and marks the main entry as SHADOWED when a snapshot has been requested, which will cause it to be updated, but not included in the generated cache. The concern here was that we need to keep generating the shadowed entries because the cleanup in `apt update` deletes any files not queued for download, so we gotta keep downloading the main source. This design is not entirely optimal, but avoids the pitfalls of having to reimplement list cleanup. Gaps: - Ubuntu Pro repositories and PPAs are not yet supported.
| * Add apt install,upgrade,... -U,--update optionsJulian Andres Klode2023-05-028-2/+143
| | | | | | | | | | This runs update before opening the cache and sources.list for installing/upgrading.
* | Merge branch 'or-group-removal' into 'main'Julian Andres Klode2023-05-022-1/+49
|\ \ | |/ |/| | | | | fix (pkgProblemResolver): Keep "or group" when installing package to satisfy it See merge request apt-team/apt!292
| * Keep "or group" when installing package to satisfy itJacob Kauffmann2023-05-022-1/+49
|/
* Release 2.6.0, the "unhappy bookworm" release2.6.0Julian Andres Klode2023-03-0651-151/+233
|
* Merge branch 'pu/licensing-shenanigans' into 'main'Julian Andres Klode2023-03-0660-28/+398
|\ | | | | | | | | machine-readable version of COPYING See merge request apt-team/apt!287
| * We do not believe rsh was supposed to exclude GPL-3Julian Andres Klode2023-03-062-1/+28
| |
| * COPYING: Address RunScripts()Julian Andres Klode2023-03-061-0/+4
| |
| * Address translation licensing concernsJulian Andres Klode2023-03-0631-1/+105
| |
| * COPYING: Group by licenseJulian Andres Klode2023-03-061-69/+14
| | | | | | | | | | | | | | The concrete copyright holders listed are not really relevant for anything, as they are woefully incomplete anyhow. Grouping by licensing allows us to focus on what matters: Parts that have a different license from the overall project.
| * po/nb.po: Relicensing GPL-2.0 -> GPL-2.0+Julian Andres Klode2023-03-062-2/+4
| | | | | | | | | | Thanks Petter for chasing down the copyright holders and getting consent.
| * Address statements of public domainJulian Andres Klode2023-03-0628-2/+139
| |
| * machine-readable version of COPYINGBastian Germann2023-03-061-17/+169
| | | | | | | | | | | | | | | | The debian/copyright (COPYING) file is missing at least two licenses (Expat, BSD-3-clause) and some copyright statements. A machine-readable version of COPYING is attached that fixes these. Closes: #1019273
| * Update lintian override info format in d/apt.lintian-overridesJulian Andres Klode2023-03-061-7/+6
|/ | | | | | | lintian-brush only fixed the spare-manual-page ones. Fixes: lintian: mismatched-override See-also: https://lintian.debian.org/tags/mismatched-override.html
* Merge branch 'pu/never-sections-matching' into 'main'Julian Andres Klode2023-03-063-5/+5
|\ | | | | | | | | Fix permissions && change section matching in config files to be more gitignore style rightmost match See merge request apt-team/apt!286
| * Use a more gitignore style matchingJulian Andres Klode2023-02-272-4/+4
| | | | | | | | | | | | | | | | Use a rightmost match for / so that if we end up with a Section: a/b/c, a 'c' matcher still matches. If the section does not contain any /, it can be matched using /pattern, e.g. /c only matches Section: c, but not Section: a/b/c.
| * test-apt-get-update-sourceslist-warning: Fix permissionsJulian Andres Klode2023-02-271-1/+1
| | | | | | | | This test did not work with umask 0002
* | Merge branch 'fix/unconditional-trusted' into 'main'Julian Andres Klode2023-03-064-7/+41
|\ \ | | | | | | | | | | | | Do not store trusted=yes Release file unconditionally See merge request apt-team/apt!289
| * | Do not store trusted=yes Release file unconditionallyDavid Kalnischkies2023-03-043-7/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A source marked with trusted=yes can still fail verification of the Release file, mostly for Date related issues, like being too new or too old, which have other options to force them in. The update code was not using the Release file (which was a InRelease file but failed verification – which was overridden by trusted=yes) as intended, but it marked it for storage, so that this "bad" Release file would end up being moved into lists/, which is bad as the indexes it refers to aren't updated while the next update run assumes that the indexes are in the state the Release file claims them to be in. Fixed simply by making the storage conditional on the usage as intended, which also resolves a second issue: The verification can also detect that a Release file we got is older than what we already have to avoid down- grade attacks. The more likely explanation is a slightly outdated mirror in a rotation/CDN through, so this gets the silent treatment to avoid scaring users by handling it as if we had got the same Release file we already have stored locally, removing the freshly received older file in the process alongside setting some variables. Those variables were already modified in the trusted=yes case though resulting in the stored Release file being removed instead. Not modifying the variables too early resolves this problem as well. Both seem to exist since at least 2015 as traces are visible in 448c38bdcd already, which shuffled lots of code around including the bad ones, but as we are in trusted=yes land, security is of no concern here, this "just" leads to failed pinning, hashsum mismatches and other strange problems in follow-up calls depending on how out of sync the Release file (if its still present) is with the rest of the trusted data. Reported-By: Dima Kogan <dkogan@debian.org> on IRC Tested-By: Dima Kogan <dkogan@debian.org>
| * | Disable retries to speed up failure-propagation testDavid Kalnischkies2023-03-041-0/+3
|/ / | | | | | | Gbp-Dch: Ignore
* | Merge branch 'bookworm/aptchangelog' into 'main'Julian Andres Klode2023-03-032-11/+63
|\ \ | | | | | | | | | | | | Detect trimmed changelogs and pick online instead See merge request apt-team/apt!288
| * | Detect trimmed changelogs and pick online insteadDavid Kalnischkies2023-03-032-11/+63
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only check the start of these lines to avoid hard coding the exact command and we pick 150 as maximum line length as the longest package name on my system is apparently 75 characters long. We could choose longer or shorter without much issue as over-length just means we mishandle the rest of the line as a new line and it should be really unlikely that a) lines are that long in this file and b) that such long lines contain one of our trigger sequences – but even if, all we do is start a download of an online file. Could be worse. This auto-detection can be avoided by setting Acquire::Changelogs::AlwaysOnline (or Origin specific sub options) to "true" if you always want the changelog from an online source. The reverse – setting it to "false" in the hope it would not get the changelog from an online source – was not and is still not possible. Closes: #1024457
* / Remove incorrectly added unused Debian vendor CMake fileDavid Kalnischkies2023-03-031-2/+0
|/ | | | | | | | | The file is a remnant of the unrelated and closed !145 pull request which tries to generate "apt-vendor.ent" – but that file exists in our sources already while the script that would generate it doesn't. Regression-of: 7e7eb113587230aeb9fe745b2eeac44e634999f5 Gbp-Dch: Ignore
* Merge branch 'pu/lunar' into 'main'Julian Andres Klode2023-02-271-1/+1
|\ | | | | | | | | Update ubuntu-codename to lunar See merge request apt-team/apt!285
| * Update ubuntu-codename to lunarJulian Andres Klode2023-02-271-1/+1
|/
* Merge branch 'feature/non-free-firmware' into 'main'Julian Andres Klode2023-02-2727-543/+677
|\ | | | | | | | | Support transition to new non-free-firmware component See merge request apt-team/apt!282
| * Suggest using non-free-firmware in update for DebianDavid Kalnischkies2023-02-043-50/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In an ideal world everyone would read release notes, but if the last sources.list change is any indication a lot of people wont. This is even more a problem in so far as apt isn't producing errors for invalid repositories, but instead carries on as normal even through it will not be able to install upgrades for the moved packages. This commit implements two scenarios and prints a notice in those cases pointing to the release notes: a) User has 'non-free' but not 'non-free-firmware' b) User has a firmware package which isn't available from anywhere Both only happen if we are talking about a repository which identifies itself as one of Debian and is for a release codenamed bookworm (or sid). Note that as (usually) apt/oldstable is used to upgrade to the new stable release these suggestions only show for users after they have upgraded to bookworm on apt command line usage after that.
| * Bump codenames in docs in preparation for Debian 12David Kalnischkies2023-01-301-7/+7
| |
| * Add non-free-firmware component in documentationDavid Kalnischkies2023-01-3017-450/+380
| | | | | | | | | | | | This changes a lot of lines technically, but its easy enough to unfuzzy the translations as most of the mentions are examples to be copied literally in translations (sadly po4a isn't clever enough for this).
| * Have values in Section config trees refer to them in all componentsDavid Kalnischkies2023-01-305-36/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hard coding each and every component is not only boring but given that everyone is free to add or use more we end up in situations in which apt behaves differently for the same binary package just because metadata said it is in different components (e.g. non-free vs. non-free-firmware). It is also probably not what the casual user would expect. So we instead treat a value without a component as if it applies for all of them. The previous behaviour can be restored by prefixing the value with "<undefined>/" as in the component is not defined. In an ideal world we would probably use "*/foo" for the new default instead of changing the behaviour for "foo", but it seems rather unlikely that the old behaviour is actually desired. All existing values were duplicated for all (previously) known components in Debian and Ubuntu.
| * Teach apt-cdrom's scoring system about non-free-firmwareCyril Brulebois2023-01-301-0/+2
| | | | | | | | Closes: #1029751
* | Czech program translation updateMiroslav Kure2023-02-101-108/+66
| | | | | | | | Closes: #1031008
* | Release 2.5.62.5.6Julian Andres Klode2023-02-0815-71/+126
| |
* | Merge branch 'fix/gccwarnings' into 'main'Julian Andres Klode2023-02-078-40/+44
|\ \ | |/ |/| | | | | Build with and fix warnings of gcc-13 See merge request apt-team/apt!280
| * Ignore return of .c_str() in preemptive call for signal handlerDavid Kalnischkies2023-01-293-3/+3
| | | | | | | | | | Reported-By: gcc-13 -Wunused-result Gbp-Dch: Ignore
| * Unhide virtual overloads in some cachefiltersDavid Kalnischkies2023-01-291-0/+2
| | | | | | | | | | | | | | | | | | The matchers are usually called via its base class, but if we would call them via the derivate class we would not be able to call the not explicitly "imported" overloads, which would be strange. Reported-By: gcc-13 -Woverloaded-virtual Gbp-Dch: Ignore
| * Drop redundant 'virtual' on function marked 'override'David Kalnischkies2023-01-291-32/+32
| | | | | | | | | | Reported-By: clang-tidy [cppcoreguidelines-explicit-virtual-functions] Gbp-Dch: Ignore
| * Include cstdint for uint16_t in our mmap wrappingDavid Kalnischkies2023-01-291-0/+1
| | | | | | | | | | | | | | In gcc-13 internal includes were reduced exposing our laziness. Reported-By: gcc-13 Gbp-Dch: Ignore
| * Avoid comparison of integers of different signedness for ETADavid Kalnischkies2023-01-291-1/+2
| | | | | | | | | | Reported-By: gcc -Wsign-compare Gbp-Dch: Ignore
| * Avoid triggering unused parameter warning in staticSIGWINCHDavid Kalnischkies2023-01-291-1/+1
| | | | | | | | | | Reported-By: gcc -Wunused-parameter Gbp-Dch: Ignore
| * Drop unneeded usage of deprecated std::binary_functionDavid Kalnischkies2023-01-291-3/+3
|/ | | | | | | | The code isn't using any of the member types this template provides, so we can just drop it from the code without any practical effect. Reported-By: gcc -Wdeprecated-declarations Gbp-Dch: Ignore
* German program translation updateHelge Kreutzmann2023-01-291-5/+4
| | | | Closes: #1029280
* Merge branch 'allow-insecure-repositories' into 'main'Julian Andres Klode2023-01-251-5/+5
|\ | | | | | | | | Document --allow-insecure-repositories See merge request apt-team/apt!277