summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.9.102.9.10Julian Andres Klode2024-10-2217-100/+312
|
* Merge branch 'main' into 'main'Julian Andres Klode2024-10-221-5/+7
|\ | | | | | | | | extracttar: Move large buffer to heap for valgrind See merge request apt-team/apt!378
| * extracttar: Move large buffer to heap for valgrindJulian Andres Klode2024-10-221-5/+7
| | | | | | | | | | | | | | valgrind has some trouble on ppc64el with the large buffer, and also on armhf where it seems to not understand the resulting stack clash protector, so let's move it to the heap using simple STL std::array in a std::unique_ptr.
* | Merge branch 'main' into 'main'Julian Andres Klode2024-10-2213-23/+24
|\ \ | | | | | | | | | | | | Minor localisation fixes See merge request apt-team/apt!374
| * | Fix misspeling in italian apt --helpRafael Marian2024-09-161-1/+1
| | | | | | | | | | | | Closes: #967973
| * | Update manual link in apt-secure(8)Rafael Marian2024-09-1611-21/+21
| | | | | | | | | | | | Closes: #1050616
| * | Fixed missing spaces in apt-mark(8)Rafael Marian2024-09-141-1/+2
| | | | | | | | | | | | Closes: #959854
* | | Merge branch 'feature/ignorantprompt' into 'main'Julian Andres Klode2024-10-221-1/+9
|\ \ \ | | | | | | | | | | | | | | | | Ignore pending input before confirmation prompts See merge request apt-team/apt!375
| * | | Show prompt reply if input is from non-terminalDavid Kalnischkies2024-09-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the unlikely case input is not a terminal (but not in some way assumed with command line flags) we should print the string we act on after the prompt so that people can see what is happening rather than having the prompt "mysteriously" hidden on terminals or prepended to the first line of the download progress in logs.
| * | | Ignore pending input before confirmation promptsDavid Kalnischkies2024-09-291-0/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Pressing ENTER for too long lets it end up in the input buffer which the confirmation prompt happily picks up and accepts as confirmation for deleting potentially half your system or doing other silly things. Ironically, this confirmation will also be silent in terms of output as it is likely erased by future progress reporting. Closes: #1082956
* | | Merge branch 'fix/apt-list-upgradable-target-release' into 'main'Julian Andres Klode2024-10-221-0/+2
|\ \ \ | | | | | | | | | | | | | | | | fix: `apt list --upgradable` with `--target-release` See merge request apt-team/apt!376
| * | | Support --target-release in `apt list`Raziel Anarki2024-10-221-0/+2
| | |/ | |/|
* | | Merge branch 'main' into 'main'Julian Andres Klode2024-10-221-1/+2
|\ \ \ | |/ / |/| | | | | | | | apt-patterns(7): add recommends See merge request apt-team/apt!377
| * | apt-patterns(7): document recommendsChristopher Bock2024-10-221-1/+2
|/ /
* | Release 2.9.92.9.9Julian Andres Klode2024-10-1715-16/+238
| |
* | test: Check that apt-ftparchive handles deep pathsJulian Andres Klode2024-10-151-0/+49
| | | | | | | | | | | | | | | | | | This checks for the previous boundaries for path sizes; but we also added a check for many files in a directory, limited to 4096. Sadly the directory check did not fail with the old code either, it's hard to actually get it to fail correctly.
* | test framework: Improve valgrind supportJulian Andres Klode2024-10-151-1/+4
| | | | | | | | | | | | Add support for testing apt-ftparchive, set valgrind to quiet such that we can check program output, and pass --error-exitcode=7 to get an (should be unused) magic error code if it detects errors.
* | ftparchive: contents: Avoid exponential complexity and overflowsJulian Andres Klode2024-10-072-228/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wstored directory entries as a binary tree, but we did not balance it, leading to exponential complexity on insertion and potentially exponential levels of stack recursion in DoPrint(), causing overflows. Simply use an std::set storing pairs of (path, package) instead, this is very simple, and handles aspects such as ordering or the same package appearing multiple times correctly. Iteration becomes a bit tricky: After seeing (file1, pkg1) when we see (file1, pkg2) we need to append pkg2 to the current line; once we see (file2, anything), we need write out the line and start a new one. For memory optimization, we use a new class StringInBlock to handle the block-managed C strings generated by Mystrdup() in a type-safe manner. This ensures proper lifetime of objects and no accidental conversions to std::string. This saves a significant amount of space (a pair of std::string is 64-byte large; a pair of pointers is 16 byte large, a 48 byte saving per entry); reproducing the Contents file of Ubuntu 24.10, using straight-forward std::string resulted in GB of memory usage, whereas the C-style string only uses 1.35 GB. As a side effect of the patch we also remove arbitrary 1024-byte buffer sizes. There also is a change in output: The package names are now sorted alphabetically, instead of being in visit order. LP: #2083697
* | ftparchive: Mystrdup: Add safety check and bump buffer sizeJulian Andres Klode2024-10-071-1/+3
|/ | | | | | | | | Add a safety check to ensure that the block were are allocating actually fits the string we want to write. If it doesn't, abort the program. While we are here, bump the buffer size from 40 KiB to 4 MiB, because why bother with smaller buffers.
* Romanian program translation updateRemus-Gabriel Chelu2024-09-091-75/+66
| | | | Closes: #1080210
* Merge branch 'pin-source-version' into 'main'Julian Andres Klode2024-08-225-3/+36
|\ | | | | | | | | Implement 'Pin: source-version <foo>' See merge request apt-team/apt!372
| * Implement 'Pin: source-version <foo>'Julian Andres Klode2024-08-225-3/+36
| | | | | | | | As wondered about by Paride some minutes ago.
* | Merge branch 'clang-18' into 'main'Julian Andres Klode2024-08-151-2/+2
|\ \ | |/ |/| | | | | Fix compilation error with clang/libc++ 18 See merge request apt-team/apt!371
| * Fix compilation error with clang/libc++ 18Chongyun Lee2024-08-151-2/+2
|/
* 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.