summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.9.12.9.1Julian Andres Klode2024-04-1448-797/+2713
|
* Merge branch 'ui-2.9.1' into 'main'Julian Andres Klode2024-04-149-12/+173
|\ | | | | | | | | UI improvements for 2.9.1 See merge request apt-team/apt!338
| * apt: Use unicode install progress bar on UTF-8 localesJulian Andres Klode2024-04-132-1/+31
| | | | | | | | | | This produces a much more appealing progress bar and it can even show parts of the progress being done.
| * apt: Default to N in the y/N prompt if there were warningsJulian Andres Klode2024-04-131-2/+3
| | | | | | | | | | This especially helps with the running out of space warnings to be safe.
| * Use "Continue anyway?" if a warning is queuedJulian Andres Klode2024-04-131-1/+2
| |
| * install: Show downgrades as yellowJulian Andres Klode2024-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | dnf shows downgrades as green because the package comes from a remote repository, but I think yellow is more indicative that they are unsupported. Ganneff asked for yellow for kept packages too, however I'm not adding yellow there, as kept packages are more indicative of an archive error, likely temporary, rather than an action item for the user.
| * Add warnings if space estimate exceeds free spaceJulian Andres Klode2024-04-131-0/+16
| |
| * Remove approx. from space estimates; and do some alignmentJulian Andres Klode2024-04-131-3/+4
| | | | | | | | | | | | This aligns the /boot message with the parent one, and also align the formatting of the partially downloaded size message to add spaces around /
| * Show space estimate for /boot, if separate; or estimate initrd for /usrJulian Andres Klode2024-04-135-2/+86
| | | | | | | | | | | | | | | | | | Calculate an estimate of 110% of the biggest initrd + system.map as the additional space a kernel needs in /boot. If /boot is a different file system than /usr, print the size of the kernels + the additional space they will need separately; otherwise include it in our /usr figure.
| * Hide nice subtree character and indentation of summary from translationsJulian Andres Klode2024-04-133-8/+15
| | | | | | | | | | | | | | | | Also allow us to have utf-8 characters in xgettext, but msgcomm still fails so ugh. This avoids translations messing up the formatting a bit more, at least, and makes apt build again
| * Space needed: Show space available in /usrJulian Andres Klode2024-04-131-2/+23
| |
| * Rename "Installed size:" to "Space needed:"Julian Andres Klode2024-04-131-1/+1
| |
* | Merge branch 'rafaelff-guest-main-patch-56374' into 'main'Julian Andres Klode2024-04-141-1/+1
|\ \ | |/ |/| | | | | Remove duplicate sentence in private-output.cc See merge request apt-team/apt!339
| * Remove duplicate sentence in private-output.ccRafael2024-04-141-1/+1
|/
* Release 2.9.02.9.0Julian Andres Klode2024-04-1258-333/+4947
|
* Merge branch 'terse-ui' into 'main'Julian Andres Klode2024-04-1211-143/+307
|\ | | | | | | | | Introduce new output format for apt(8) See merge request apt-team/apt!337
| * Use the same words for the summaryJulian Andres Klode2024-04-121-4/+4
| | | | | | | | | | | | Instead of using Upgrades, Installs, and so on, just use Upgrading, Installing, etc. This solves the problem of not having a nice noun for "Not upgrading".
| * Only show Recommends/Suggests for new installs, not upgradesJulian Andres Klode2024-04-123-7/+1
| | | | | | | | | | | | This makes things more useful in combination with the upgrade command, but introduces a subtle change seen in the test suite when you use the install command to upgrade packages.
| * Show Recommends/Suggests for upgrades too, move them downJulian Andres Klode2024-04-121-91/+98
| | | | | | | | | | | | Extract the code to show them into its own function and call it in the old place for output version < 30, or after the dependencies being installed for new output format.
| * apt: Introduce the new terse apt output format 3.0Julian Andres Klode2024-04-126-36/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The key talking points here are: 1. Instead of long sentences, we use short concise messages, e.g. "The following NEW packages will be installed" becomes "Installing". 2. Dependencies are only listed once. We removed the "The following additional packages will be installed" section in favor of splitting up the "Installing" section into "Installing" and "Installing dependencies" (like dnf) 3. The order of the output is different: 1. Packages to be installed manually 2. Packages to be installed automatically 4. Weak dependencies of new packages not installed 3. Packages to be upgraded 4. Packages to be downgraded 5. Packages that have been kept back / are on hold 6. Removals 7. Essential removals i.e. we logically show you the action that is being done, followed by lists related to the action. 4. As requested by popey, we have colorful UI, with green for packages being installed and red for packages being removed. Caveats: - The list of recommends and suggests has not been updated yet, it should move to after the packages being installed (as they are what triggers them) This also introduces output format versioning, configured by the APT::Output-Format option. The default value is 0, except for the apt(8) binary where it is 30 - which enables the new style.
| * OpProgress: Erase lines when doneJulian Andres Klode2024-04-123-4/+12
| | | | | | | | | | | | | | | | | | | | | | It's interesting to the user to see the progress when it happens, but arguably once it's done it is just visual clutter, so let's not write newlines, and when we are done, instead of appending "Done", let's just empty the line. This requires some effort to keep apt-cdrom happy which just writes lines to stdout itself. Bad apt-cdrom. Maybe there is a better fix for it, but this gets us going.
| * columnar: Fix floating point exception (list is empty if -V)Julian Andres Klode2024-04-121-1/+1
| |
| * Columnar output for package lists similar to 'ls'Christian Blichmann2024-04-127-12/+111
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change makes it a bit easier to quickly grasp the changes about to be performed by apt. It displays package lists in a columnar format by default, similar to what `ls` produces for files. A new long option `--no-list-columns` and an associated `APT::Get::List-Columns` config setting control the behavior. Usage example, with 60 column wide terminal: ``` $ sudo apt upgrade | Reading package lists... Done | Building dependency tree... Done | Reading state information... Done | Calculating upgrade... Done | The following packages were automatically installed and are | no longer required: | libappindicator1 libindicator7 | libdbusmenu-gtk4 linux-image-5.14.0-4-amd64 | Use 'sudo apt autoremove' to remove them. | The following packages have been kept back: | criu linux-headers-amd64 nvidia-settings | libxnvctrl0 nvidia-modprobe xwayland | 0 upgraded, 0 newly installed, 0 to remove and 6 not upgrade| d. | ``` The effect becomes more pronounced with more packages (e.g. when doing a dist-upgrade).
* Revert "Temporarily downgrade key assertions to "soon worthless""Julian Andres Klode2024-04-092-5/+12
| | | | | | | | | | | | | We temporarily downgraded the errors to warnings to give the launchpad PPAs time to be fixed, but warnings are not safe: Untrusted keys could be hiding on your system, but just not used at the moment. Hence revert this so we get the errors we want. This reverts commit 66998ed3d299bede651ad40368bdb270f5f5b0f9. LP: #2060721 Gbp-Dch: full
* Fix and unfuzzy previous VCG/Graphviz URI changeDavid Kalnischkies2024-03-308-96/+16
| | | | | | | | | | | | | The Graphviz change adapted only the msgstrs in the po files, which fuzzied all translations the moment the msgids were updated by the merge while forgetting fr.po and pl.po and in the VCG change the msgstr in the ja.po was missed. This commit "just" unfuzzies the strings (and fixes the missed ones) so the translators don't have to as intended in the commits. References: ae5c291b0c76b22c939679ccf35e3eb94131e586 edf1025e691e94cdde305bc2d15484fc7ee6db1c
* Ignore umask of leftover diff_Index in failed pdiff testDavid Kalnischkies2024-03-301-3/+6
| | | | | | | | | | | | | | | We don't store .diff_Index files anymore and so libapt cares even less about these purposefully leftover files from the testcases than it did previously. On a successful apt run they would just be deleted, but as we are testing a failed run they are not touched at all. Testing the file access bits then means we check with whatever umask they were created which might very well be different to what apt decides these files to have if it had touched them, so for this test we just delete them. For the other case we set it completely wrong just in case, but they will (hopefully) be non-existent anyhow as tested first. References: afcdbcf895284efd76903b2b3ba5cc849059ce50
* Avoid subshell hiding failure report from testfilestatsDavid Kalnischkies2024-03-301-3/+4
| | | | | | We remove the working directory from the found file names as these paths could contain a lot of funny characters confusing the for loop like spaces… we just readd it later in the actual calls to be safe.
* Release 2.7.142.7.14Julian Andres Klode2024-03-2218-173/+340
|
* Add an artificial Conflicts: against libnettle8Steve Langasek2024-03-221-1/+2
| | | | | | to force upgrades in launchpad buildd chroots Gbp-Dch: full
* Revert "debrecords: Do not reparse if given same location"Julian Andres Klode2024-03-222-14/+3
| | | | This reverts commit 9bb953fddae0246a4dcedddb769d75d3521e1f2f.
* debrecords: Do not reparse if given same locationJulian Andres Klode2024-03-222-3/+14
| | | | | | | The TagFile parser will have already parsed further and can't go back so it needs to reopen the file if compressed. Closes: #1067440
* Merge branch '1065831-apt_upgrade_documentation' into 'main'Julian Andres Klode2024-03-223-5/+20
|\ | | | | | | | | Update documentation for apt-get upgrade with pkg arg See merge request apt-team/apt!334
| * Include Dutch translation for apt/apt-get upgrade documenation updateWesley Schwengle2024-03-121-0/+7
| | | | | | | | Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
| * Update documentation for apt upgrade with pkg argWesley Schwengle2024-03-121-2/+6
| | | | | | | | | | | | Closes: #1065831 Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
| * Update documentation for apt-get upgrade with pkg argWesley Schwengle2024-03-121-3/+7
| | | | | | | | | | | | Closes: #1065831 Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
* | Merge branch '1066856-doc_changes' into 'main'Julian Andres Klode2024-03-2213-59/+59
|\ \ | | | | | | | | | | | | Update URI in documentation See merge request apt-team/apt!335
| * | s#http://bugs.debian.org/src/#https://bugs.debian.org/src#Wesley Schwengle2024-03-1411-32/+32
| | | | | | | | | | | | Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
| * | Update VCG tool URI to new locationWesley Schwengle2024-03-1411-18/+18
| | | | | | | | | | | | Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
| * | Update Graphviz URL to https://graphviz.org/Wesley Schwengle2024-03-149-9/+9
| |/ | | | | | | Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
* | Merge branch 'tagfile-lookback' into 'main'Julian Andres Klode2024-03-221-0/+5
|\ \ | |/ |/| | | | | pkgTagFile::Jump: Use lookback buffer to rejump to current position See merge request apt-team/apt!336
| * pkgTagFile::Jump: Use lookback buffer to rejump to current positionJulian Andres Klode2024-03-211-0/+5
|/ | | | | | | | | If we get called twice with the same offset, our d->Start and d->iOffset will already point at the offset for the next section. But since we have the start of the last parsed section still in the buffer, just make sure to always go back to the start first. Closes: #1067440
* Dutch manpages translation updateFrans Spiesschaert2024-03-071-37/+38
| | | | Closes: #1065517
* Dutch program translation updateFrans Spiesschaert2024-03-071-7/+5
| | | | Closes: #1065513
* Parse unsupported != relation in dependenciesDavid Kalnischkies2024-03-071-1/+11
| | | | | | | | | | | | | | | | | libapt has a NotEquals relation for version constraints in dependencies, which is used internally e.g. in the MultiArch implementation, but this relation is not supported by Debian policy and as such can not be used in packages. Our parser here is extremely accepting, even unknown relations are parsed as Equals relation – but the version that must match will be a rather strange one… For our own testcases and e.g. on the command line with 'satisfy' it can make sense to have != available… and what strange things apt does parsing unsupported relations is not really much of a concern. Real packages will not have such relations anyhow as we are (mostly) just a consumer, not a producer of packages and index files.
* Remove non-existent Debug::BuildDeps from apt.conf(5)David Kalnischkies2024-03-0710-72/+35
| | | | | | | | | The option was removed in 2016 along with the code surrounding it, as the special build-deps specific solver was replaced with reusing our generic solver(s). As such, the normal debug options for these apply here nowadays instead of requiring another one to be set as well. References: a249b3e6fd798935a02b769149c9791a6fa6ef16
* Handle EINTR in the static FileFd::Write overloadDavid Kalnischkies2024-03-051-39/+32
| | | | | | | | | | While the code claims to handle it by just continuing the loop, the looping condition will actually cause a break from the loop failing the interrupted writing. The non-static FileFd::Write (and ::Read) deal with this by setting acceptable values for the loop condition as well – but for more simplicity and consistency we can instead remove this extra loop condition and perform the continue/break due to error handling more explicitly.
* Merge branch 'main' into 'main'Julian Andres Klode2024-03-035-7/+30
|\ | | | | | | | | Support building without gnutls See merge request apt-team/apt!333
| * Support building without gnutlsSteve Langasek2024-03-035-7/+30
|/ | | | | | | | | Once in a generation, it may be necessary to bootstrap apt in an environment where gnutls is not yet available. This makes gnutls support in apt optional. You may also want a configure flag to force gnutls to be required from outside the buildsystem (e.g. debian/rules).
* Release 2.7.132.7.13Julian Andres Klode2024-02-2848-107/+142
|
* prepare-release: Adjust for t64 suffixJulian Andres Klode2024-02-281-4/+5
|