path: root/src/info.c
Commit message (Collapse)AuthorAgeFilesLines
* First steps for libapkNatanael Copa2010-06-111-0/+1
* info: fix usage of arraysTimo Teräs2010-06-081-4/+4
* all: rework how arrays workTimo Teräs2010-06-051-14/+4
| | | | | | | | | | 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.
* info: fix querying of removed, but referenced packagesTimo Teras2010-05-051-1/+1
| | | | | Check that package name has packages associated with it before dereferencing the pointer. Fixes #345.
* index, version: support for repository descriptions (fixes #141)Timo Teras2009-09-031-1/+1
| | | | | ability embed description information to repository indexes (e.g. repository name and version) and show it via "apk version -I".
* info: clean ups, print triggers (ref #45)Timo Teras2009-08-131-96/+113
* db, pkg: separate structure for fields of installed packagesTimo Teras2009-08-121-8/+11
| | | | | | | this makes the database package entry smaller, and we propbably get more fields to installed_package later too. this cleans up the way scripts are stored and is a preparation for supporting triggers. some parsing for trigger meta-data. ref #45.
* all: implement database open optionsTimo Teras2009-08-061-13/+7
| | | | so user can override trusted keys directory and repositories file.
* info: fix a --exists to work if the name is non-existantTimo Teras2009-08-051-0/+3
* info: support dependency style tests in package existance checkingTimo Teras2009-08-051-11/+18
* db: speed up fdb creationTimo Teras2009-07-141-1/+1
| | | | | avoid recalculating hashes, and store the lengths of names, so we can optimize some operations.
* db: open flags revisitedTimo Teras2009-07-071-1/+1
| | | | | more fine grained control what to load, and rename some of the flags to be shorter.
* info: fix compiler warning on x86_64Natanael Copa2009-06-301-2/+2
| | | | | printf %i does not work so well with size_t on 64 bit. Use %zu which seems to be portable enough.
* help: auto construct helpTimo Teras2009-06-251-14/+14
| | | | And add some more verbosity to the help message.
* info: support for -d, --descriptionNatanael Copa2009-06-191-5/+20
| | | | and re-arrange the order of displayed info
* info: allow multiple subactions at the same runNatanael Copa2009-06-191-18/+45
| | | | By using a bitmask we can combine subactions
* info: add size and webpage to usageNatanael Copa2009-06-191-1/+1
* info: add -w,--webpage and -s,--size optionsNatanael Copa2009-06-191-0/+30
* improve --help outputNatanael Copa2009-06-191-1/+2
| | | | | 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.
* info: let -e print which packages are installedNatanael Copa2009-04-211-14/+30
* info: do not read the repositories as this tool only query the statedbNatanael Copa2009-04-211-1/+1
| | | | | | | | This allows you to query the state db even if you do not have write permissions in cache dir (which is needed if you have remote repositories) This should speed up things and save some memory if you have big and slow remote repositories.
* pkg: clean up writing of dependenciesTimo Teras2009-04-161-3/+8
* state: rework changeset calculation algorithmTimo Teras2009-04-141-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* info: option '-r' to print "required by" infoTimo Teras2009-04-141-43/+71
* Created search appletCameron Banta2009-03-071-29/+1
* Added -o option to apk info to list repository packagesCameron Banta2009-03-061-1/+29
* info: list contents follw same style as list dependsNatanael Copa2009-02-081-6/+7
| | | | | - empty lines comes after not before - separate pkgname with : when using -v option
* info: implement -R/--depends to show dependenciesNatanael Copa2009-02-081-1/+42
* info: don't print package name unless its installedNatanael Copa2009-01-201-1/+2
* info: list contents with -LNatanael Copa2009-01-201-0/+43
* db: database locking and creation to part of opening itTimo Teras2009-01-171-1/+1
| | | | | Add flags field to db open call. Also make error reporting quite a bit more detailed.
* info: only show package desc when --verboseNatanael Copa2009-01-161-4/+6
| | | | | | | also introduce apk_verbosity. --quiet reduce verbosity and --verbose increases it. Default verbosity is 1.
* info: implement who owns packages query (apk_info -W)Timo Teras2009-01-131-0/+36
| | | | | In quiet mode e.g. "apk info -q -W <file list>" a list of dependencies suitable for .PKGINFO is output in one line.
* apk: per applet optionsTimo Teras2009-01-131-9/+70
* info: new appletNatanael Copa2009-01-091-0/+43
so far it only lists installed packages