Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
list does everything search does and more
|
|
|
|
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.
|
|
|
|
|
|
In case all applet arguments are packages names (that is are not
including wildcards), return error if they do not match to some
package.
|
|
Add also a new 'commit' group that is the common options
for all applets that can commit package changes.
|
|
This option lets us search for all package with given origin.
|
|
|
|
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
|
|
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.
|
|
|
|
|
|
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.
|
|
|
|
|
|
use the new apk_pkg_foreach_reverse_dependency helper to find
the reverse dependencies properly.
|
|
- makes -v option useful
- makes --origin --quiet --exact useful for piping and scripting
- makes the default output more readable
|
|
in preparation for provides support. implements also some
dependency satisfaction helper routines.
ref #574.
|
|
also optimize search to happen for enumeration of package names.
fixes #39, fixes #560
|
|
fixes #714
|
|
|
|
still todo:
- 'fix' is missing
- 'del -R' does not work
- 'upgrade' does not do self-upgrade first
... and a lot of testing.
|
|
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.
|
|
- 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
|
|
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.
|
|
So it'll be easier to rebuild affected packages. Fixes #349.
|
|
so user can override trusted keys directory and repositories file.
|
|
more fine grained control what to load, and rename some of the
flags to be shorter.
|
|
And add some more verbosity to the help message.
|
|
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.
|
|
This should be slightly faster and comsume less memory in theory
|
|
|
|
|