aboutsummaryrefslogtreecommitdiffstats
path: root/src/search.c
Commit message (Collapse)AuthorAgeFilesLines
* search: remove from APK_COMMAND_GROUP_QUERYWilliam Pitcock2018-01-291-1/+0
| | | | list does everything search does and more
* apk: usage: cleanup help text when no applet is selectedWilliam Pitcock2018-01-091-0/+1
|
* search: match packages only onceTimo Teräs2015-11-091-0/+9
| | | | | | | fixes #4770 apk_name_foreach_matching() can matches each package via it's main name and all it's provides. Print matched packages only once.
* fix search --has-origin to not leak memoryTimo Teräs2015-06-121-1/+1
|
* search: fix swapped needle and haystackBobby Bingham2015-06-101-2/+2
|
* make del, fetch, fix and info return errorsTimo Teräs2014-12-081-0/+2
| | | | | | 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-15/+19
| | | | | Add also a new 'commit' group that is the common options for all applets that can commit package changes.
* search: implement --has-originNatanael Copa2013-08-281-1/+15
| | | | This option lets us search for all package with given origin.
* Allow "apk search -x" for -eDubiousjim2013-06-301-1/+3
|
* various: applet help text and comment fixesDubiousjim2013-06-281-1/+1
| | | | 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
|
* apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs2013-06-181-53/+27
|
* pkg: apk_pkg_foreach_* add matching generationTimo Teräs2013-06-151-7/+4
| | | | | | So same package it is possible to not match same package multiple times. Use generation count, so this is handled cleanly during recursion, like in the use case of search applet.
* audit, index, search, upgrade: use foreach_array_itemTimo Teräs2013-06-141-7/+5
|
* search: speed up searching exact package namesTimo Teräs2013-06-131-16/+26
|
* search: fix reverse dependency searching (fixes #2084)Timo Teräs2013-06-131-52/+47
| | | | | use the new apk_pkg_foreach_reverse_dependency helper to find the reverse dependencies properly.
* search: improve output format for --rdependsNatanael Copa2012-06-061-2/+4
| | | | | | - makes -v option useful - makes --origin --quiet --exact useful for piping and scripting - makes the default output more readable
* all: introduce apk_provides and use it in apk_nameTimo Teräs2012-02-241-10/+11
| | | | | | | in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
* search: implement --exact and --allTimo Teräs2011-09-141-53/+76
| | | | | also optimize search to happen for enumeration of package names. fixes #39, fixes #560
* search: implement --origin to print origin package nameTimo Teräs2011-09-141-17/+32
| | | | fixes #714
* 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.
* 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: use 'atoms' for certain package field and misc fixesTimo Teräs2010-12-141-6/+6
| | | | | | | - 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
* all: rework how arrays workTimo Teräs2010-06-051-7/+1
| | | | | | | | | | 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.
* search: add search for reverse dependencies in indexTimo Teräs2010-05-191-57/+91
| | | | So it'll be easier to rebuild affected packages. Fixes #349.
* all: implement database open optionsTimo Teras2009-08-061-12/+6
| | | | so user can override trusted keys directory and repositories file.
* 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.
* help: auto construct helpTimo Teras2009-06-251-3/+4
| | | | And add some more verbosity to the help message.
* improve --help outputNatanael Copa2009-06-191-2/+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.
* search: do not read the state db as this tool only query reposNatanael Copa2009-04-211-1/+1
| | | | This should be slightly faster and comsume less memory in theory
* search: use fnmatch so we have support for wildcardsNatanael Copa2009-04-031-1/+2
|
* Created search appletCameron Banta2009-03-071-0/+148