summaryrefslogtreecommitdiff
path: root/src/apk.c
AgeCommit message (Collapse)AuthorFilesLines
2011-09-09print: minor cleanup to indented writerTimo Teräs1-6/+5
2011-07-22apk: improve indented printingTimo Teräs1-15/+16
* fixup the help messages to align up properly * refresh screen width on SIGWINCH
2011-07-16apk: use APK_DEFAULT_ARCH in version().William Pitcock1-1/+1
2011-07-16apk: display command descriptions in command listWilliam Pitcock1-5/+10
2011-04-22apk: default screen width 70 if ioctl says 0 as widthTimo Teräs1-1/+1
2011-04-14db: Allow override arch when using --rootNatanael Copa1-0/+5
This is so we can do x86 --root installs on x86_64 hosts. Using --arch without --root can make great damage so we only enable it if --root is used.
2011-03-19apk: improve progress barTimo Teräs1-3/+17
* make it as wide as the screen * make sure it's drawn after package change * and draw it using ansi escapes in line buffered stderr
2011-03-16apk: show progress bar by default for tty controlled runsTimo Teräs1-0/+8
and make the progress bar disappear on regular runs too.
2011-01-01upgrade: perform upgrade of apk-tools first if availableTimo Teräs1-0/+6
Also re-exec's apk-tools to perform rest of the upgrade using the new apk-tools. This allows handling of new apk-tools features properly. Fixes #140.
2010-12-14various: use 'atoms' for certain package field and misc fixesTimo Teräs1-0/+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-10-08io, db: id cache should be specific to database root, not system rootTimo Teräs1-2/+0
Otherwise we end up using wrong uid/gid mappings when doing install to alternate system root. Fixes #434.
2010-06-30static build: do not use openssl enginesTimo Teräs1-0/+4
We want minimal static build. And this now also breaks with our openssl since it tries to automatically dlopen some of the engine modules.
2010-06-12archive: honor username/groupname instead of uid/gidTimo Teräs1-0/+2
Take the uid/gid from passwd and group.
2010-06-11db: make apk_wait a part of dboptsNatanael Copa1-3/+3
2010-06-11First steps for libapkNatanael Copa1-57/+3
2010-06-08state: fix error printingTimo Teräs1-0/+2
2009-12-21apk: remove the unneeded --never-overwriteTimo Teras1-4/+0
turns out the logic does not work with overlays as expected due to busybox symlinks being unmanaged. remove the useless option.
2009-12-21apk: --overlay-from-stdinTimo Teras1-0/+4
get list of overlay files from stdin, so those do not get overwritten.
2009-11-06apk: add --never-overwrite flag (ref #197)Timo Teras1-0/+4
to never ever overwrite a while in the filesystem the user knows about. it gives the impression of extraction succeeding even though nothing was done. this is inteded to be used only for bootstrapping with overlay.
2009-08-06db: prefer local repositories, and implement --no-networkTimo Teras1-1/+5
this helps boots sequence when network is not available.
2009-08-06state: indent package listsTimo Teras1-12/+7
2009-08-06all: implement database open optionsTimo Teras1-15/+34
so user can override trusted keys directory and repositories file.
2009-07-31apk: use *at instead of chdir+normal file syscallTimo Teras1-2/+1
this way we never change cwd, and relative filenames are always parsed consistently. this also helps filename construction in many places. this patch also changes '--root' to override location of all configuration to be in the new root. previously it depended on the file which one was used.
2009-07-24apk: add -i/--interactive option (fixes #60)Timo Teras1-0/+4
and use that to figure if questions are allowed or not instead of the verbosity level.
2009-07-23index: more informative error messageTimo Teras1-0/+2
when failed to load an existing index.
2009-07-22apk: add --purge option (fixes #61)Timo Teras1-0/+5
and do not remove modified configuration files unless --purge is specified.
2009-07-22apk: allow-untrusted optionTimo Teras1-0/+5
to not make hard error of untrusted or missing signatures
2009-07-22various: more informative error messagesTimo Teras1-0/+18
2009-07-22various: misc fixesTimo Teras1-1/+1
- error codes for verification failure types - fix some fdb corruption on file migration - combine some dependency parsing code - fix versioned dependencies
2009-07-14db: live with sha1 and md5Timo Teras1-2/+0
this also convers scripts file to a tar archive.
2009-07-13openssl: register engines, and use oneshot digest when possibleTimo Teras1-0/+1
to actually get hardware acceleration if available.
2009-07-09implement --update-cache optionNatanael Copa1-0/+4
This will update the repository cache upon db_open.
2009-07-08apk: initialize opensslTimo Teras1-0/+22
add all ciphers and built-in engines so we get e.g. hw acceleration of sha1 when available.
2009-07-08csum: use openssl insteadTimo Teras1-0/+2
instead of having static md5 implemenation, use the openssl library for digest functions.
2009-07-07apk: add --wait option to wait for exclusive lock (fixes #26)Timo Teras1-6/+13
2009-06-29cache: new applet (ref #49)Timo Teras1-1/+4
Administrative tool to download or delete files to/from the cache.
2009-06-25help: auto construct helpTimo Teras1-44/+144
And add some more verbosity to the help message.
2009-06-19improve --help outputNatanael Copa1-15/+27
apk --help will list the generic options only and give a list of commands To get the details for a spefic command, 'apk command --help' should be used.
2009-05-25Revert "add: replace coffe-cup with starwars"Timo Teras1-1/+1
This reverts commit 0906a1c7de37ba54f29e9dbabbbd5ea069258cef. Conflicts: src/add.c
2009-04-15state: make package deletion saferTimo Teras1-4/+4
Refuse to delete explicitly specified top-level packages unless --force is specified.
2009-04-14state: rework changeset calculation algorithmTimo Teras1-7/+18
Calculate changesets directly by stabilizating the package graph instead of recalculating the whole graph and then diffing (similar approach as seen in 'smart' package manager). The algorithm is not complete: defferred search space forking is missing. So you don't always get a solution on complex graphs. Benefits: - usually the search state tree is smaller (less memory used) - speed relational to changeset size, not database size (usually faster) - touch only packages related to users request (can work on partitially broken state; upgrades only necessary packages, fixes #7) Also implemented: - command prompt to confirm operation if packages are deleted or downgraded - requesting deletion of package suggests removal of all packages depending on the package being removed (you'll get list of packages that also get removed if you want package X removed) - option --simulate to see what would have been done (mainly for testing) - an untested implementation of versioned dependencies and conflicts A lot has changed, so expect new bugs too.
2009-03-04apk: --force to overwrite filesTimo Teras1-2/+3
2009-03-04apk: --clean-protected optionTimo Teras1-10/+11
So you will not get .apk-new files of the new configuration files.
2009-02-17db: allow more than one --repository argNatanael Copa1-2/+17
2009-01-17apk: added option --version/-VNatanael Copa1-14/+25
Both variants should work: apk --version apk <applet> --version
2009-01-16add: --upgrade|-u to control if upgrading is preferred or notTimo Teras1-1/+1
2009-01-16apk: fix --root/-p optionNatanael Copa1-1/+1
2009-01-16apk: short option for --root is -pNatanael Copa1-1/+1
Used to be so in the really old days of apk.
2009-01-16info: only show package desc when --verboseNatanael Copa1-3/+7
also introduce apk_verbosity. --quiet reduce verbosity and --verbose increases it. Default verbosity is 1.
2009-01-15apk: isalnum() takes only unsigned char values add explicit check for thatTimo Teras1-1/+2