summaryrefslogtreecommitdiff
path: root/src/apk_print.h
AgeCommit message (Collapse)AuthorFilesLines
2021-12-27print: improve indented printing apiTimo Teräs1-2/+6
- make sure all commit errors go to stderr - make it a bit more api like
2021-07-26Use __attribute__ ((format)) where possible and fix issues found by itTimo Teräs1-3/+5
2021-06-02add adbgen applet to generate databases from it's text dumpTimo Teräs1-0/+1
2021-03-19Log to /var/log/apk.logDrew DeVault1-1/+6
This adds a log file at /var/log/apk.log. On each run, apk's version information and the current date & time are written to this file, followed by any normal apk output.
2020-10-09rename apk_db_options to apk_ctx, rework loggingTimo Teräs1-14/+23
makes apk_verbosity non-global fixes #10682
2020-10-09make apk_flags non-global, make progress printing state non-globalTimo Teräs1-3/+10
ref #10682
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