summaryrefslogtreecommitdiff
path: root/src/apk_print.h
AgeCommit message (Collapse)AuthorFilesLines
2023-03-03print: improve indented printing api2.12-stableTimo Teräs1-2/+7
- make sure all commit errors go to stderr - make it a bit more api like (cherry picked and rebased from commit a662047e2c43604bc087ec4dda9a7358368d850b) fixes #10879
2021-07-26Use __attribute__ ((format)) where possible and fix issues found by itTimo Teräs1-4/+7
2020-10-05db: mask password component of printed URLsTimo Teräs1-0/+12
fixes #10710
2020-05-07use SPDX-License-Identifier in source filesTBK1-3/+1
2020-01-05Humanize size output of `apk info`Sören Tempel1-0/+1
This commits adds a function for receiving the closet byte unit and the size in that unit for a given size_t. The function doesn't return a string since dynamic memory allocation (or a static buffer) would be required to implement this properly. Discussion: It might be useful to add a command line flag for disabling this behaviour in order to retain compatibility with the previous apk info output format.
2017-04-24print: print warnings and errors to stderrShiz1-2/+3
2013-06-19print: move progress bar update logic to apk_print_progressNatanael Copa1-4/+1
- let the apk_print functions deal with the forced print itself. We avoid that the callbacks need to deal with the force flag. We can also get rid of the APK_PRINT_PROGRESS_* defines. - let the reader of --progress-fd decide how often things are updated rather than having a fixed granularity off 1/100 (percent) - avoid detect screen size and percent/bar calculations in case the --no-progress was given - track satistics for both the ascii bar and percent info and update bar only if either percent or bar changes. This makes the bar go smoother when width is wider than 100 chars and it makes the percent counter go smooth when screen width is less thann 100 chars. It also simplifies the callbacks as they no longer need to deal with update granularity.
2013-06-17print: move progress printing to common functionsTimo Teräs1-1/+7
2013-06-13errors: rewrite the logic how errors are reportedTimo Teräs1-0/+1
Instead of the dependency oriented logic, switch to print them for each package or name needed. Might give a bit more readable errors now. There's still few corner cases that proper error is not output, which are cought by the test cases.
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2011-09-09print: minor cleanup to indented writerTimo Teräs1-0/+6
2011-07-22apk: improve indented printingTimo Teräs1-0/+2
* fixup the help messages to align up properly * refresh screen width on SIGWINCH
2010-06-11print: clean up after copy-pasteNatanael Copa1-1/+1
2010-06-11First steps for libapkNatanael Copa1-0/+27