summaryrefslogtreecommitdiffstats
path: root/src/apk_defines.h
Commit message (Collapse)AuthorAgeFilesLines
* First steps for libapkNatanael Copa2010-06-111-8/+1
|
* all: rework how arrays workTimo Teräs2010-06-051-18/+18
| | | | | | | | | | Instead of having a null pointer, use a dummy array which just says the array is empty. This helps in multiple places of the code which would otherwise need explicitly need to check first if the array exists. This has been cause of multiple seg.faults in the past as the array check is easily omitted. This also removes (or fixes) all existing checks accordingly.
* apk: remove the unneeded --never-overwriteTimo Teras2009-12-211-2/+1
| | | | | turns out the logic does not work with overlays as expected due to busybox symlinks being unmanaged. remove the useless option.
* apk: --overlay-from-stdinTimo Teras2009-12-211-0/+1
| | | | get list of overlay files from stdin, so those do not get overwritten.
* apk: add --never-overwrite flag (ref #197)Timo Teras2009-11-061-0/+1
| | | | | | | 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.
* db: implement triggers (fixes #45)Timo Teras2009-08-131-1/+1
|
* db: prefer local repositories, and implement --no-networkTimo Teras2009-08-061-0/+1
| | | | this helps boots sequence when network is not available.
* del: add '-r' to remove top-level dependencies recursivelyTimo Teras2009-08-041-0/+1
| | | | | and by default just update the world, and dump a lost of packages that are not removed. fixes #47.
* apk: use *at instead of chdir+normal file syscallTimo Teras2009-07-311-1/+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.
* apk: add -i/--interactive option (fixes #60)Timo Teras2009-07-241-0/+1
| | | | | and use that to figure if questions are allowed or not instead of the verbosity level.
* apk: add --purge option (fixes #61)Timo Teras2009-07-221-0/+1
| | | | | and do not remove modified configuration files unless --purge is specified.
* apk: allow-untrusted optionTimo Teras2009-07-221-0/+1
| | | | to not make hard error of untrusted or missing signatures
* various: more informative error messagesTimo Teras2009-07-221-0/+1
|
* various: misc fixesTimo Teras2009-07-221-3/+3
| | | | | | | - error codes for verification failure types - fix some fdb corruption on file migration - combine some dependency parsing code - fix versioned dependencies
* blob: add some likelyness to help compiler optimizationsTimo Teras2009-07-141-0/+12
|
* build: optimize with -O2 by defaultTimo Teras2009-07-141-2/+3
| | | | also make the array code more explicit to have gcc optimizer happy.
* implement --update-cache optionNatanael Copa2009-07-091-0/+1
| | | | This will update the repository cache upon db_open.
* csum: use openssl insteadTimo Teras2009-07-081-14/+0
| | | | | instead of having static md5 implemenation, use the openssl library for digest functions.
* apk: add --wait option to wait for exclusive lock (fixes #26)Timo Teras2009-07-071-1/+1
|
* upgrade: add --available optionTimo Teras2009-06-251-1/+2
| | | | | | | That will make the upgrade prefer packages available in repositories. This is good if one want's to downgrade packages by removing an experimental repository. Or to force re-install of locally built vs. repository version when the package version are same, but checksum is different. Fixes #51.
* fetch: new applet to download .apk filesTimo Teras2009-04-151-0/+1
| | | | Fixes #24.
* state: rework changeset calculation algorithmTimo Teras2009-04-141-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* apk: --force to overwrite filesTimo Teras2009-03-041-1/+1
|
* apk: --clean-protected optionTimo Teras2009-03-041-0/+1
| | | | So you will not get .apk-new files of the new configuration files.
* add: --upgrade|-u to control if upgrading is preferred or notTimo Teras2009-01-161-1/+1
|
* info: only show package desc when --verboseNatanael Copa2009-01-161-3/+3
| | | | | | | also introduce apk_verbosity. --quiet reduce verbosity and --verbose increases it. Default verbosity is 1.
* various: make fancy progress bar and update todoTimo Teras2009-01-071-1/+20
|
* apk_array: clear newly allocated memoryTimo Teras2009-01-061-1/+6
|
* hash, db: use apk_blob_t and list_*Timo Teras2008-11-271-0/+69
|
* db: checksum installed files, protect config filesTimo Teras2008-11-141-0/+7
| | | | | | | Checksum of installed is computed on the fly when extracting them and it'll be saved to fdb. When installing config files those are diverted with suffix .apk-new if earlier version of same file with local changes exist.
* Overwriting of bb files, apk_create (from old apk-tools), chdir changes,Timo Teras2008-04-221-5/+21
| | | | | other stuff.
* Preserve uid and gid. Quiet flag to print dots on progress.Timo Teras2008-04-221-3/+5
|
* Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras2008-04-171-0/+147
breakage and major changes.