summaryrefslogtreecommitdiff
path: root/src/search.c
AgeCommit message (Collapse)AuthorFilesLines
2019-12-27Revert "search: remove from APK_COMMAND_GROUP_QUERY"Timo Teräs1-0/+1
This reverts commit d379edd5bf960de8089b9f2083fc6f14b79e7bba. Requested multiple times. Let's enable this for now. For v3.0, we reconsider which applets to keep and remove the ones not needed.
2019-06-05fix all applets to return -ENOTSUP if it's unrecognizedTimo Teräs1-1/+1
The return -1 seems to have been left over from earlier code, and could have been treated as -EPERM. This helps to fix the other command line handling that potentially require changing.
2018-01-29search: remove from APK_COMMAND_GROUP_QUERYWilliam Pitcock1-1/+0
list does everything search does and more
2018-01-09apk: usage: cleanup help text when no applet is selectedWilliam Pitcock1-0/+1
2015-11-09search: match packages only onceTimo Teräs1-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.
2015-06-12fix search --has-origin to not leak memoryTimo Teräs1-1/+1
2015-06-10search: fix swapped needle and haystackBobby Bingham1-2/+2
2014-12-08make del, fetch, fix and info return errorsTimo Teräs1-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.
2014-10-08rework option parsing to have a group structureTimo Teräs1-15/+19
Add also a new 'commit' group that is the common options for all applets that can commit package changes.
2013-08-28search: implement --has-originNatanael Copa1-1/+15
This option lets us search for all package with given origin.
2013-06-30Allow "apk search -x" for -eDubiousjim1-1/+3
2013-06-28various: applet help text and comment fixesDubiousjim1-1/+1
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
2013-06-19all: few behavioural regression fixesTimo Teräs1-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.
2013-06-19applets: unify help message by removing final dotsTimo Teräs1-1/+1
2013-06-18apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs1-53/+27
2013-06-15pkg: apk_pkg_foreach_* add matching generationTimo Teräs1-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.
2013-06-14audit, index, search, upgrade: use foreach_array_itemTimo Teräs1-7/+5
2013-06-13search: speed up searching exact package namesTimo Teräs1-16/+26
2013-06-13search: fix reverse dependency searching (fixes #2084)Timo Teräs1-52/+47
use the new apk_pkg_foreach_reverse_dependency helper to find the reverse dependencies properly.
2012-06-06search: improve output format for --rdependsNatanael Copa1-2/+4
- makes -v option useful - makes --origin --quiet --exact useful for piping and scripting - makes the default output more readable
2012-02-24all: introduce apk_provides and use it in apk_nameTimo Teräs1-10/+11
in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
2011-09-14search: implement --exact and --allTimo Teräs1-53/+76
also optimize search to happen for enumeration of package names. fixes #39, fixes #560
2011-09-14search: implement --origin to print origin package nameTimo Teräs1-17/+32
fixes #714
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2011-09-09applets: start using solver codeTimo Teräs1-1/+0
still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
2011-01-01pkg: dependencies to specific package checksumTimo Teräs1-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.
2010-12-14various: use 'atoms' for certain package field and misc fixesTimo Teräs1-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
2010-06-05all: rework how arrays workTimo Teräs1-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.
2010-05-19search: add search for reverse dependencies in indexTimo Teräs1-57/+91
So it'll be easier to rebuild affected packages. Fixes #349.
2009-08-06all: implement database open optionsTimo Teras1-12/+6
so user can override trusted keys directory and repositories file.
2009-07-07db: open flags revisitedTimo Teras1-1/+1
more fine grained control what to load, and rename some of the flags to be shorter.
2009-06-25help: auto construct helpTimo Teras1-3/+4
And add some more verbosity to the help message.
2009-06-19improve --help outputNatanael Copa1-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.
2009-04-21search: do not read the state db as this tool only query reposNatanael Copa1-1/+1
This should be slightly faster and comsume less memory in theory
2009-04-03search: use fnmatch so we have support for wildcardsNatanael Copa1-1/+2
2009-03-07Created search appletCameron Banta1-0/+148