summaryrefslogtreecommitdiff
path: root/src/print.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-19print: move progress bar update logic to apk_print_progressNatanael Copa1-22/+39
- 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-19print: percent arg for process_fd is integerNatanael Copa1-1/+1
With commit 0a131418899436b58a163978176d99c08cbddb0c the percent variable became an integer instead of size_t. We fix the format modifier accordingly.
2013-06-17print: move progress printing to common functionsTimo Teräs1-0/+32
2013-06-17db: refactor repository file constructionTimo Teräs1-0/+2
Fixes also 'fetch' applet to prefer copying/linking to files from cache if possible.
2013-06-13errors: rewrite the logic how errors are reportedTimo Teräs1-0/+12
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.
2012-02-10print: minimum screen width of 50Timo Teräs1-2/+3
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2011-09-09print: minor cleanup to indented writerTimo Teräs1-5/+6
2011-07-22apk: improve indented printingTimo Teräs1-3/+22
* fixup the help messages to align up properly * refresh screen width on SIGWINCH
2010-12-14various: use 'atoms' for certain package field and misc fixesTimo Teräs1-1/+1
- implement a hash table for commonly shared fields such as license, version and architecture - use macroes to print blobs or pkgname-pkgver strings - fix some old cruft
2010-12-09io: enhance istream/bstreams with pipe to forked childTimo Teräs1-1/+1
* prunes the child pid to avoid zombies * handles the errors so e.g. file-not-found is reported properly
2010-06-11print: clean up after copy-pasteNatanael Copa1-1/+1
2010-06-11First steps for libapkNatanael Copa1-0/+70