summaryrefslogtreecommitdiff
path: root/src/add.c
AgeCommit message (Collapse)AuthorFilesLines
2009-07-24add, fetch: make handling of special options more logicalTimo Teras1-41/+0
2009-07-24db: remove APK_NAME_VIRTUAL flagTimo Teras1-1/+1
use the package 'installed_size' == 0 as a test instead for dependency only packages.
2009-07-24db: create cache index with non-repository packagesTimo Teras1-7/+20
this enables virtual packages and files specified from command line to work on non-harddisk installs.
2009-07-22signing: verify and generate identityTimo Teras1-2/+2
fixes verification of non-repository packages while installing them. this is final thing needed for full signing support (fixes #46).
2009-07-22add: fixes to installing non-repository packageTimo Teras1-3/+13
make sure cache is enabled on non-permanent rootfs setups. some optimizations and fixes too.
2009-07-22various: more informative error messagesTimo Teras1-3/+3
2009-07-22various: misc fixesTimo Teras1-4/+7
- error codes for verification failure types - fix some fdb corruption on file migration - combine some dependency parsing code - fix versioned dependencies
2009-07-20db: signed index loading (ref #46)Timo Teras1-1/+1
prefer index in the new format as signed .tar.gz.
2009-07-17verify: new applet (ref #46)Timo Teras1-1/+4
an utility to check package signature and integrity.
2009-07-16various: new style index generationTimo Teras1-1/+1
change the index generation to do old index, or the new style index where package identity is sha1 of control block and it's contained within an .tar.gz to allow signing in future.
2009-07-14db: live with sha1 and md5Timo Teras1-1/+2
this also convers scripts file to a tar archive.
2009-07-08csum: use openssl insteadTimo Teras1-1/+1
instead of having static md5 implemenation, use the openssl library for digest functions.
2009-07-07add: ignore install failures on 'apk add --force'Timo Teras1-1/+2
and use this option in initramfs, so we are likely to get an usable environment even if some packages from world are missing. fixes #50.
2009-06-28blob: function to checksum a blobTimo Teras1-9/+1
And use it in couple of places. Some whitespace fixes too.
2009-06-25help: auto construct helpTimo Teras1-46/+44
And add some more verbosity to the help message.
2009-06-19improve --help outputNatanael Copa1-1/+1
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-06-16add: support for forced versionsNatanael Copa1-16/+5
Support version numbers specified with packages. For example: apk add 'busybox<1.14' apk add 'squid=>3.0'
2009-05-25Revert "add: replace coffe-cup with starwars"Timo Teras1-3/+47
This reverts commit 0906a1c7de37ba54f29e9dbabbbd5ea069258cef. Conflicts: src/add.c
2009-05-21add: fix segfault when no params are givenLinux User1-1/+2
2009-05-21add: replace coffe-cup with starwarsNatanael Copa1-48/+4
saves space
2009-05-21add: coffe-cupNatanael Copa1-0/+49
2009-05-19add: fix segfault when no packages are givenNatanael Copa1-1/+1
2009-05-15add: create csum for virtuals. only add the virtual to worldNatanael Copa1-2/+14
2009-05-15add: improve error reporting for virtual packagesNatanael Copa1-5/+7
By locking all the given dependendencies for virtual packages first we can catch invalid deps and report those. This is alot more helpful than just reporting "Unable to install <virutalpkg>"
2009-05-14add: support for virtual meta packagesNatanael Copa1-4/+34
implements 'apk add --virutal metaname dep1 dep2...' where metaname will be an empy meta package with dep1 and dep2 as dependencies. This is useful to prevent abuild to add each makedepend to world which causes some headache when it comes to unintalling them after sucessful build.
2009-05-14fix uninitialized variable bugNatanael Copa1-1/+1
2009-05-11fix misc compiler warnings about unintialized variables.Natanael Copa1-2/+3
The compiler is actually right about those.
2009-05-11add: delay state initialization til we have all pkgs in dbNatanael Copa1-5/+9
The state size is taken from name_id and cannot be extended. So we must wait with initializing the state til we have all packages added to the db. We must also always allocate the package name, incase its not in the repository. This is done with apk_db_get_name().
2009-04-14state: rework changeset calculation algorithmTimo Teras1-6/+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-01-17db: database locking and creation to part of opening itTimo Teras1-22/+5
Add flags field to db open call. Also make error reporting quite a bit more detailed.
2009-01-16add: --upgrade|-u to control if upgrading is preferred or notTimo Teras1-4/+8
2009-01-13add: --initdb to replace create appletTimo Teras1-6/+52
2009-01-13apk: per applet optionsTimo Teras1-1/+1
2008-11-28add: add support to install packages not in a repositoryTimo Teras1-4/+22
2008-11-27hash, db: use apk_blob_t and list_*Timo Teras1-1/+1
2008-04-21Argument parsing. Some other stuff too.Timo Teras1-3/+4
2008-04-17Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras1-0/+42
breakage and major changes.