summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.9.82.9.8Julian Andres Klode2024-08-126-11/+25
|
* Merge branch 'main' into 'main'Julian Andres Klode2024-08-122-0/+50
|\ | | | | | | | | Do not return error if `Signed-By` value in source list is empty See merge request apt-team/apt!364
| * Do not return error if `Signed-By` value in source list is emptyAristo Chen2024-07-122-0/+50
| | | | | | | | Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
* | Fix obsoleted-by handling for experimentalJulian Andres Klode2024-08-123-13/+127
| | | | | | | | | | | | | | | | | | | | Basically this boils down to checking that the priority of the source candidate candidate is higher or equal than the priority of the package's candidate that is being under consideration. It stands to reason if we maybe we should actually calculate a source candidate version; this will look similar but may perhaps perform slightly different.
* | Merge branch 'update-catalan-translation' into 'main'Julian Andres Klode2024-08-091-74/+74
|\ \ | | | | | | | | | | | | Update Catalan translation See merge request apt-team/apt!369
| * | Improve translations, add commentsCarles Pina i Estany2024-08-081-6/+19
| | |
| * | Update Catalan translationCarles Pina i Estany2024-08-061-73/+60
|/ /
* | Release 2.9.72.9.7Julian Andres Klode2024-07-3048-49/+295
| |
* | Merge branch 'deprecate-pubkey-algos' into 'main'Julian Andres Klode2024-07-309-3/+173
|\ \ | | | | | | | | | | | | Only revoke weak RSA keys now, add 'next' and 'future' levels See merge request apt-team/apt!365
| * | Only revoke weak RSA keys for now, add 'next' and 'future' levelsJulian Andres Klode2024-07-154-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Algorithms not in the next level give a warning, algorithms in not in the future level introduce an audit message for the --audit flag. next: >=rsa2048,ed25519,ed448,nistp256,nistp384,nistp512 future: >=rsa3072,ed25519,ed448 LP: #2073126
| * | gpgv: Add IsAssertedPubKeyAlgo() functionJulian Andres Klode2024-07-153-0/+89
| | | | | | | | | | | | This checks whether a public key algorithm is asserted.
| * | gpgv: Add a LaterWorthless level, a SoonWorthless but at 'audit' levelJulian Andres Klode2024-07-151-0/+10
| | |
| * | worker: Add an audit level to log audit messagesJulian Andres Klode2024-07-152-2/+15
| | |
* | | Add note that redundant 'CLI interface' is intentionalJulian Andres Klode2024-07-281-0/+2
| | |
* | | solver3: Refactor Reason.Pkg()/Reason.Ver() use with iteratorJulian Andres Klode2024-07-162-6/+16
| |/ |/| | | | | More code but nicer to read
* | Polish program translation updateMichał Kułach2024-07-081-1022/+445
| | | | | | | | Closes: #1075975
* | Dutch manpages translation updateFrans Spiesschaert2024-07-081-21/+4
| | | | | | | | Closes: #1075875
* | Dutch program translation updateFrans Spiesschaert2024-07-081-5/+3
| | | | | | | | Closes: #1075874
* | Parse snapshot option for apt show/listDavid Kalnischkies2024-07-083-7/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | The option is supported by the command (as this is done by a bit more low level code), but the command line parsing did not expect them to be used for the apt show & list command, so that it would report error. As such, a workaround for this issue is to use: -o APT::Snapshot=BANANA instead of e.g. -S BANANA Closes: #1075819
* | Merge branch 'print-installed-version-for-removed-packages' into 'main'Julian Andres Klode2024-07-054-2/+54
|\ \ | |/ |/| | | | | Show installed version (not candidate version) while removing a package See merge request apt-team/apt!362
| * Show installed version (not candidate version) while removing a packagesid2024-07-054-2/+54
|/ | | | | Showing a package version which was never installed in removals is confusing.
* Release 2.9.62.9.6Julian Andres Klode2024-07-025-6/+22
|
* Merge branch 'solver3' into 'main'Julian Andres Klode2024-07-022-21/+35
|\ | | | | | | | | Fixes for the Obsolete handling See merge request apt-team/apt!361
| * solver3: Formatting cleanupJulian Andres Klode2024-07-021-8/+8
| | | | | | | | Run clang-format
| * solver3: Only demote obsolete packages in choices for upgradesJulian Andres Klode2024-07-021-2/+3
| | | | | | | | | | If we are not upgraded, we should continue to keep the installed package installed if possible.
| * solver3: Consider packages as obsolete and not versionsJulian Andres Klode2024-07-022-13/+26
|/ | | | | | | | | | | | | This makes more sense, as all package versions are obsolete that are not the candidate, usually. Pay special attention to no-strict-pinning: If we don't have strict pinning, a package without a candidate version may still be non-obsolete if the latest version is not obsolete. Likewise, in no-strict-pinning any later source version that exists will cause the package to be considered obsolete, rather than just candidates.
* Merge branch 'solver3-refactor-from' into 'main'Julian Andres Klode2024-07-015-41/+60
|\ | | | | | | | | Rewrite the FromDepCache method to be smaller and more correct See merge request apt-team/apt!360
| * solver3: Refactor (rewrite) FromDepCache()Julian Andres Klode2024-07-015-41/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the various Install requests into a single one and move some stuff around, this should be a bit easier to maintain and we don't repeat ourselves all the time. This accidentally uncovered some bugs in the code, that get fixed by this: - The UpgradeManual and InstallManual groups did not work correctly, Essential packages were Install and others were Upgrade. - Automatically installed packages falsely got promoted to the manual groups as they got promoted into the manual code path, whenever we ran without allowing their removal. - The combination of --mark-auto --auto-remove now works correctly We previously skipped the installation of automatically installed packages when we did autoremoval, but we did not consider if the action was protected, that is specified on the command-line. Now we do not autoremove protected actions, and have added a test case for it. - The AllowRemoveManual option no longer is applied if removals are generally denied. Closes: #1071519
| * solver3: Unmark packages before setting any in ToDepCacheJulian Andres Klode2024-07-011-0/+2
|/ | | | | | We should set the Mark/Garbage flags for all packages so we don't end up in an inconsistent state, so reset the flags for each package before evaluating further.
* Merge branch 'solver3-replaces-are-not-really-deps' into 'main'Julian Andres Klode2024-07-012-1/+68
|\ | | | | | | | | solver3: Do not accidentally promote Replaces and Enhances to dependencies See merge request apt-team/apt!359
| * solver3: Do not accidentally promote Replaces and Enhances to dependenciesJulian Andres Klode2024-07-012-1/+68
|/ | | | | | | | | | As part of the refactoring, we allowed the code to work on unimportant dependencies as we needed to promote Suggests to Depends if they are currently satisfied. However, Replaces and Enhances were not considered properly and both are not negative dependencies so they were accidentally promoted to Depends too if they were currently satisfied.
* Release 2.9.52.9.5Julian Andres Klode2024-06-1315-53/+110
|
* Merge branch 'snapshot-typo' into 'main'Julian Andres Klode2024-06-131-1/+1
|\ | | | | | | | | Fix spelling of @SNAPSHOTID@ in apt.conf.5.xml See merge request apt-team/apt!353
| * Fix spelling of @SNAPSHOTID@ in apt.conf.5.xmlNoah Meyerhans2024-05-291-1/+1
| | | | | | | | Closes: #1072189
* | Merge branch 'edsp-source-version' into 'main'Julian Andres Klode2024-06-132-1/+15
|\ \ | | | | | | | | | | | | edsp: Parse source version from the Source-Version field See merge request apt-team/apt!354
| * | edsp: Parse source version from the Source-Version fieldJulian Andres Klode2024-05-302-1/+15
| |/ | | | | | | | | | | | | | | | | EDSP uses the Source-Version field instead of storing the source version in the Source field with the package name, adjust our parser accordingly. Use the override in the edspLikeListParser to do so rather than dumb this into the correct place in the debListParser.
* | Merge branch 'solver3-group' into 'main'Julian Andres Klode2024-06-134-59/+123
|\ \ | | | | | | | | | | | | solver3: Group work items; and helpers See merge request apt-team/apt!356
| * | solver3: Order obsolete choices lastJulian Andres Klode2024-06-133-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has two aspects: 1. For a dependency A | B | C we order the obsolete packages last, that is, if A is obsolete, this gets reordered to B | C | A, such that we try to pick non-obsolete packages first to ease upgrade calculation. 2. When comparing two dependencies, we order dependencies into three groups: First we satisfy dependencies mentioning only non-installed (NEW) packages, then we satisfy "normal" dependencies, and finally we satisfy any dependencies mentioning obsolete packages. This means for example if you have obsolete libfoo1 and a new libfoo1t64, that we will see Depends: libfoo1t64 before any Depends: libfoo1 (which may expand to libfoo1 | libfoo1t64), so we effectively will have selected "replacement" packages this way already before getting to older packages where we would have to choose between the obsolete package and its replacement.
| * | solver3: Remove no longer necessary comparisonsJulian Andres Klode2024-06-131-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Comparing the size of work items is not strictly needed; we check if items have a single or no solution and propagate them early on, but it doesn't matter much if we solve A|B or C|D|E first. This will allow us to get rid of all the resizing business later on, and switch to using literal watching where we only watch one of the literals on the right hand side. Likewise, the upgrade case mattered initially in testing, but seems to have resolved itself.
| * | solver3: Group work itemsJulian Andres Klode2024-06-132-27/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our backtracking is chronological, so we will first try alternative choices or skip optional items in later groups. So installing manually installed packages before automatically installed ones allows manually installed packages to remove automatically installed packages easily. If we did automatic packages first, we'd keep back upgrades for manual packages or change choices for their dependencies, or would have to backtrack harder to get back to the right decision level. That's silly. Ordering automatically installed packages last also allows us to calculate autoremovable packages. Since we will have installed all dependencies from manually installed packages by the point where we get to automatically installed packages, everything that will be installed in those Auto groups is inherently garbage.
| * | solver3: Do not dump sizes that are clearly pointersJulian Andres Klode2024-06-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We use a union here, but we don't know if we last stored a pointer, so let's just reject clearly non-sizes. Generally this will work fine -- you will not have enough choices in a dependency that you can construct a valid pointer to a Version*, especially given that any Version * > sizeof(pkgCache::Header) already, given it is in the cache.
| * | Make the failure mode for non-executable tests strongerJulian Andres Klode2024-06-131-1/+1
|/ / | | | | | | | | | | | | | | | | When a test-* file is created but not executable, we'd ignore the argument and then our subprocess would run the entire test suite itself, sequentially. Silly. Let's just see if the file exists instead, then the test will fail.
* | Merge branch 'gpgv-options' into 'main'Julian Andres Klode2024-06-131-12/+2
|\ \ | | | | | | | | | | | | Check gpgv --dump-options for --assert-pubkey-algo support See merge request apt-team/apt!355
| * | Check gpgv --dump-options for --assert-pubkey-algo supportJulian Andres Klode2024-06-131-12/+2
|/ / | | | | | | | | | | | | This avoids the fragile --help check. This option is not documented in the manual page but seems to be there. Thanks: Justus Winter for the idea
* | Dutch manpages translation updateFrans Spiesschaert2024-06-111-48/+36
| | | | | | | | Closes: #1072494
* | Dutch program translation updateFrans Spiesschaert2024-06-111-8/+10
|/ | | | Closes: #1072493
* Merge branch 'user-ci-fixes' into 'main'Julian Andres Klode2024-05-283-6/+8
|\ | | | | | | | | CI: Set /bin/sh shell for travis user, so flock -c works See merge request apt-team/apt!351
| * Fix test cases for non-amd64 architecturesJulian Andres Klode2024-05-282-5/+7
| | | | | | | | | | | | These got broken by the recent solver3 changes by accident, and we did not notice as I also broke the test suite detection with the new statistics feature, hooray.
| * CI: Set /bin/sh shell for travis user, so flock -c worksJulian Andres Klode2024-05-271-1/+1
|/ | | | This is awkward.
* Release 2.9.42.9.4Julian Andres Klode2024-05-2548-226/+514
|