aboutsummaryrefslogtreecommitdiffstats
path: root/src/ver.c
Commit message (Collapse)AuthorAgeFilesLines
* make del, fetch, fix and info return errorsTimo Teräs2014-12-081-2/+3
| | | | | | 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.
* version: clarify usageDubiousjim2013-06-281-3/+4
| | | | Acked-by: Natanael Copa <ncopa@alpinelinux.org>
* 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-2/+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-2/+1
|
* db: store repository tag names including leading @Timo Teräs2013-06-181-13/+14
|
* fix, info, ver: perform wildcard matchingTimo Teräs2013-06-181-46/+26
| | | | ref #511
* apk: use string array in applet mains, separate apk_name_foreach_matchingTimo Teräs2013-06-181-20/+23
|
* ver: fix help message of --limitTimo Teräs2012-11-051-2/+2
|
* ver: show all packages with -vNatanael Copa2012-05-071-1/+1
| | | | ref #1122
* ver: make --quiet output suitable for scripting/pipingNatanael Copa2012-05-071-0/+4
| | | | | | | | | | | | | Do not print version numbers or compare result char when in quiet mode. This makes the output suitable for be used in scripts or pipes. For example: # Upgrade all packages that matches a given regexp apk version --limit '<' --quiet | grep $regexp | apk fix --reinstall # Delete all packages that are removed from repository apk version --limit '?' --quiet | xargs apk del
* ver: print '?' when package is not available in any repoNatanael Copa2012-05-071-1/+2
| | | | | This makes it possible to differ between downgradable packages (-l '<') and unavailable in repos (-l '?').
* ver: show all versions if package name specifiedTimo Teräs2012-04-271-1/+1
| | | | fixes #1116
* all: introduce apk_provides and use it in apk_nameTimo Teräs2012-02-241-15/+13
| | | | | | | in preparation for provides support. implements also some dependency satisfaction helper routines. ref #574.
* ver: handle pinned packages betterTimo Teräs2012-02-151-7/+36
|
* ver: by default show only upgradeable packagesTimo Teräs2012-02-141-0/+6
|
* all: update copyright year statementTimo Teräs2011-09-131-1/+1
|
* ver: database is not needed for version string checking and testsTimo Teräs2011-07-241-0/+2
|
* various: use 'atoms' for certain package field and misc fixesTimo Teräs2010-12-141-8/+10
| | | | | | | - 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
* io: enhance istream/bstreams with pipe to forked childTimo Teräs2010-12-091-1/+1
| | | | | * prunes the child pid to avoid zombies * handles the errors so e.g. file-not-found is reported properly
* First steps for libapkNatanael Copa2010-06-111-0/+1
|
* version: --index output to stdout instead of stderrTimo Teras2009-09-041-4/+4
|
* index, version: support for repository descriptions (fixes #141)Timo Teras2009-09-031-4/+28
| | | | | ability embed description information to repository indexes (e.g. repository name and version) and show it via "apk version -I".
* db, pkg: separate structure for fields of installed packagesTimo Teras2009-08-121-4/+4
| | | | | | | 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-9/+6
| | | | so user can override trusted keys directory and repositories file.
* ver: implement --limitNatanael Copa2009-07-091-27/+24
| | | | | | | | | Support for limiting output for only showing the packages who have the status we are interested in. For example --limit '<' will only list packages that have a newer version available. While here, we also fix so packages that are not in any repository are displayed with '?'.
* ver: fix output indentationTimo Teras2009-07-071-1/+3
|
* help: auto construct helpTimo Teras2009-06-251-7/+8
| | | | And add some more verbosity to the help message.
* ver: only compare the given packages, show versionNatanael Copa2009-06-201-17/+47
| | | | | make apk_version_compare() take strings rather than blobs add apk_pkgversion_compare(), a wrapper that takes packages
* improve --help outputNatanael Copa2009-06-191-1/+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.
* ver: added --check/-c option to vaildate given version stringNatanael Copa2009-04-031-0/+17
|
* ver: test given version strings with -t or --testNatanael Copa2009-04-031-7/+41
|
* 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.
* apk: per applet optionsTimo Teras2009-01-131-1/+1
|
* hash, db: use apk_blob_t and list_*Timo Teras2008-11-271-2/+1
|
* Argument parsing. Some other stuff too.Timo Teras2008-04-211-3/+3
|
* Initial commit of some stuff written so far. Still in state of flux. ExpectTimo Teras2008-04-171-0/+76
breakage and major changes.