aboutsummaryrefslogtreecommitdiffstats
path: root/src/info.c
Commit message (Collapse)AuthorAgeFilesLines
* apk: usage: cleanup help text when no applet is selectedWilliam Pitcock2018-01-091-0/+1
|
* info: fix typo in helpDamiano Albani2017-09-271-1/+1
|
* io: make io vtables const struct, and add accessors for themTimo Teräs2017-06-231-2/+2
| | | | | This reduces function pointers in heap, and unifies how the io functions are called.
* info: add support for --licenseNatanael Copa2016-06-131-0/+16
| | | | print license with the --license option.
* fix info --who-owns to work with relative filenamesTimo Teräs2016-05-311-5/+12
| | | | fixes #5656
* info: fix --installed test of conflictsTimo Teräs2015-11-121-5/+5
|
* rework error handling for write streamsTimo Teräs2015-03-101-3/+5
|
* make del, fetch, fix and info return errorsTimo Teräs2014-12-081-19/+18
| | | | | | In case all applet arguments are packages names (that is are not including wildcards), return error if they do not match to some package.
* rework option parsing to have a group structureTimo Teräs2014-10-081-6/+10
| | | | | Add also a new 'commit' group that is the common options for all applets that can commit package changes.
* info who-owns: print symlink target owner as a fallbackTimo Teräs2014-10-061-3/+15
| | | | | busybox trigger creates symlinks to itself. This helps user to see where these come from.
* info: fix printing of 'replaces' fieldTimo Teräs2014-03-071-1/+1
|
* various: applet help text and comment fixesDubiousjim2013-06-281-2/+2
| | | | Acked-by: Natanael Copa <ncopa@alpinelinux.org>
* all: few behavioural regression fixesTimo Teräs2013-06-191-1/+3
| | | | | | | | | Wildcard matching with no names should match all packages only for info and search applet. "apk del" would otherwise try to delete everything, etc. Fix also interactive mode to ask questions only if we are actually changing something.
* applets: unify help message by removing final dotsTimo Teräs2013-06-191-1/+1
|
* fix, info, ver: perform wildcard matchingTimo Teräs2013-06-181-33/+24
| | | | ref #511
* apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs2013-06-181-47/+37
|
* all: various conversions to foreach_array_item, and simplifications of codeTimo Teräs2013-06-181-93/+37
|
* db: refactor repository file constructionTimo Teräs2013-06-171-1/+1
| | | | | Fixes also 'fetch' applet to prefer copying/linking to files from cache if possible.
* db, info: allow packages to install files/symlinks to rootTimo Teräs2013-05-291-1/+1
| | | | fixes #1578
* info: --provides alias -p is reserved for --root, use -PNatanael Copa2012-09-281-2/+2
| | | | fixes #1396
* info: fix exit code for -eTimo Teräs2012-03-301-3/+6
| | | | fixes #1069
* info: support displaying providesTimo Teräs2012-02-291-6/+32
|
* solver, test: make conflicts unconditionalTimo Teräs2012-02-291-1/+1
| | | | | | | Solver will now never report partial solution where a conflict constraint is not satisfied. The is because with --force we might install the partial solution; and if conflicted packages were to be installed we might have extra trouble.
* all: introduce apk_provides and use it in apk_nameTimo Teräs2012-02-241-41/+36
| | | | | | | in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
* db: support line feed as 'world' dependency separatorTimo Teräs2012-01-121-1/+5
| | | | | * default writing the world with spaces if a space is found (for backwards compatibility) for now
* info: display short info if packages are givenNatanael Copa2012-01-061-0/+10
| | | | instead of just list all installed package
* info: -e and -W operate on database only (repos not needed)Timo Teräs2011-12-241-0/+2
| | | | .. so do not load them.
* solver, db: implement repository pinningTimo Teräs2011-10-291-16/+18
| | | | | | | | | | | | | | | | | | Improves /etc/apk/repositories format so you can say: http://nl.alpinelinux.org/alpine/v2.3/main @edge http://nl.alpinelinux.org/alpine/edge/main @testing http://nl.alpinelinux.org/alpine/edge/testing After which you can pin dependencies to these tags using: apk add stableapp newapp@edge bleedingapp@testing Apk will now by default only use the untagged repositories, but adding a tag to specific dependency: 1. will prefer that tag for the name 2. allowing pulling in dependencies from that tag (though, it prefers untagged packages to satisfy deps if possible) fixes #575
* pkg, info: remember installed packages "replaces"Timo Teräs2011-10-181-5/+32
| | | | | | | | | | | | | "replaces" is now turned to a full dependency type list, so you can make package overwrite files only certain versions of the package (though, we should probably take this into account already at solution calculation phase). Also make 'info --replaces' print the "replaces" of the package. This is in preparation for the policy package support, which still requires "replacement priority" field to decide which packages' files get the preference.
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* applets: start using solver codeTimo Teräs2011-09-091-1/+0
| | | | | | | | | still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
* state, info: implement install_if (fixes #443)Timo Teräs2011-03-291-4/+76
| | | | | Implement the logic for install_if lines. Update info applet to also display the install_if related fields.
* pkg: dependencies to specific package checksumTimo Teräs2011-01-011-2/+1
| | | | | | | | | When package is installed from commandline, we should always install that specific instance of package (never favor repository version if it has difference identity). Otherwise we might not always end-up installing the .apk given on command line. The dependency is now against specific checksum identity (marked with >< dependency comparison). Fixes #492.
* various: fix breakage from converting dependency versions to atomsTimo Teräs2011-01-011-0/+1
| | | | | The version now needs to be initialized atom always, since it's dereferenced in various places.
* info: return error if owning package was not foundNatanael Copa2010-12-151-3/+6
|
* various: use 'atoms' for certain package field and misc fixesTimo Teräs2010-12-141-14/+22
| | | | | | | - 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
* 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.