summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.9.22.9.2Julian Andres Klode2024-04-2258-404/+2926
|
* Add long-version message "Audit:" instead of "A:"Julian Andres Klode2024-04-221-1/+1
|
* Merge branch 'ui-2.9.2' into 'main'Julian Andres Klode2024-04-2210-34/+83
|\ | | | | | | | | UI changes for 2.9.2 See merge request apt-team/apt!343
| * Show "Upgrading:" before other sectionsJulian Andres Klode2024-04-191-2/+2
| | | | | | | | | | | | This avoids awkward interactions with Installing dependencies and Suggested packages appearing before it; despite being triggered by it.
| * Insert blank line following simulation noteJulian Andres Klode2024-04-191-0/+2
| |
| * Remove spurious newline inside `apt autoremove` messageJulian Andres Klode2024-04-192-11/+17
| | | | | | | | | | | | Add a new `note` field to `ShowList` which contains a line to be displayed after the list itself. This allows `ShowList` to render a self-contained list block.
| * show: Highlight field names and colorize package nameJulian Andres Klode2024-04-195-14/+40
| | | | | | | | We should pass this properly to the TagSection.write()
| * apt update: Show upgradable package count in boldJulian Andres Klode2024-04-193-1/+7
| |
| * i18n: Use Error:/Warning:/Notice: instead of E:/W:/N:Julian Andres Klode2024-04-191-5/+10
| | | | | | | | | | This allows these bits to be localized, improving user experience for users in different languages.
| * Keep the entire error/warning/notice message boldJulian Andres Klode2024-04-191-0/+4
| | | | | | | | | | This draws a bit more attention, and improves readability vs keeping the color for the entire message.
| * Render notices without (yellow) color, just in boldJulian Andres Klode2024-04-191-1/+1
| | | | | | | | Yellow is a bit odd for notices.
* | build: test: Silence warnings in GTest codeJulian Andres Klode2024-04-2033-32/+43
| | | | | | | | | | GTest has a lot of broken things with signed vs unsigned, and double integer promotions, let's silence them.
* | test: configuration: color: reset _config after testsJulian Andres Klode2024-04-201-0/+2
| | | | | | | | | | | | This avoids us polluting the configuration for later tests, since the test order apparently is not deterministic. We probably should fix some common test case thingy instead.
* | Merge branch 'audit' into 'main'Julian Andres Klode2024-04-199-8/+53
|\ \ | |/ |/| | | | | Add an "audit" error level See merge request apt-team/apt!323
| * Add an audit message for missing InRelease filesJulian Andres Klode2024-04-191-0/+2
| |
| * Add an --audit option to switch on audit loggingJulian Andres Klode2024-04-194-2/+15
| | | | | | | | | | This option is recommended to be used by repository operators for testing.
| * Change the default log level from debug to noticeJulian Andres Klode2024-04-195-6/+6
| | | | | | | | | | | | | | | | | | | | We never used the debug level before, so we can do that. This allows us to have the new audit level. We did call DumpErrors() with DEBUG in two debug code paths, so don't touch those. debug
| * Add an "audit" error levelJulian Andres Klode2024-04-192-0/+30
|/ | | | | This will aggressively highlight out-of-compliance vs the best practices.
* Merge branch 'color-framework' into 'main'Julian Andres Klode2024-04-1911-20/+144
|\ | | | | | | | | Introduce APT::Configuration::Color, --color option and documentation for color. See merge request apt-team/apt!342
| * apt.conf(5): Document the APT::Color scopeJulian Andres Klode2024-04-191-0/+39
| |
| * private-output: Remove check for output version for colorJulian Andres Klode2024-04-191-2/+2
| | | | | | | | This is somewhat pointless.
| * Add a --color, --no-color optionJulian Andres Klode2024-04-193-5/+14
| | | | | | | | Wrap empty else in {} to avoid readability issues
| * Configure individual action colors using APT::Color::ActionJulian Andres Klode2024-04-192-7/+13
| |
| * Use APT::Configuration::color to apply color to outputJulian Andres Klode2024-04-194-15/+18
| |
| * Add APT::Configuration::color helper to colorize thingsJulian Andres Klode2024-04-193-0/+67
|/
* Allow no spaces for the last dependency in ParseDepends, tooDavid Kalnischkies2024-04-172-1/+34
| | | | | | | | | | | | | | | | | | | | All other entries in a dependency line get substantial leeway about the amount of spaces surrounding the entry itself and its individual parts, but the very last entry was required to have a version constraint be at least 4 chars long (excluding opening bracket and spaces following it), so if the version is short and a single-char relation used a space had to make up for it. This is a bit unfair in comparison to the other entries who do not have such unreasonable demands, so we reduce our demand to 3 chars or longer, which is satisfied by "=1)". If it is a good idea to hate spaces that much remains unanswered by this commit, but in practice most tools (re)writing the files we parse will include spaces, so its only in files (or on the satisfy command line) directly edited by users that we can encounter such a situation, which is a relatively new development given this line came unchanged from the introduction of this method in 1998. LP: #2061834
* Simplified Chinese program translation updateBoyuan Yang2024-04-171-73/+54
| | | | Closes: #1069118
* Czech program translation updateMiroslav Kure2024-04-171-65/+43
| | | | | | | Note by committer: Merged with latest pot and resolving 3 white space fuzzies introduced by it Closes: #1068943
* Only erase OpProgress lines in output version 3.0Julian Andres Klode2024-04-151-5/+5
| | | | | While this is an interactive only change that doesn't break parsing someone got unhappy.
* Also respect an APT_NO_COLOR variableJulian Andres Klode2024-04-152-3/+3
| | | | | This is easier to discover than APT::Color options and matches best practices.
* 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.