aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* fetch: reimplement -R after solver changesTimo Teräs2011-09-161-17/+11
|
* build: fix make install of shared lib and lua moduleNatanael Copa2011-09-161-2/+2
|
* lua: implement iterator with installed packagesNatanael Copa2011-09-151-5/+43
|
* lua: implement exists/is_installedNatanael Copa2011-09-151-0/+33
| | | | Tests whether given package string is installed
* lua: init fixesNatanael Copa2011-09-151-0/+3
| | | | | - call apk_atom_init() - if no open flag is specified, then default to read-only.
* lua: implement who_ownsNatanael Copa2011-09-151-0/+41
|
* lua: open and close dbNatanael Copa2011-09-151-2/+50
|
* lua: initial db_openNatanael Copa2011-09-151-1/+75
| | | | so far we just parse the db options
* solver: fix sorting when solver is used multiple times within runTimo Teräs2011-09-151-1/+2
| | | | | namely this fixes apk upgrade without --no-self-upgrade when the solver is called twice.
* lua: remove unneeded global varsNatanael Copa2011-09-141-4/+0
|
* build: tell git to ignore config.mkNatanael Copa2011-09-141-0/+1
|
* build: support building lua module without shared libapkNatanael Copa2011-09-141-3/+4
| | | | Use the build option SHARED_LIBAPK for building shared.
* lua: typecast apk blob lenNatanael Copa2011-09-141-6/+13
| | | | So we can build with -Werror
* solver: make state pointers completely internalTimo Teräs2011-09-145-41/+32
| | | | | | | the only bit of information needed in solver commit is the "hard" topology sorting information for trigger ordering. fixes a bug in "apk del" which uses the state pointers to do intermediate calculations between solution solving and commit.
* apk: remove unneeded global apk_screen_widthTimo Teräs2011-09-141-1/+0
|
* 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
* solver, db: run triggers in dependency orderTimo Teräs2011-09-146-15/+60
| | | | fixes #738
* upgrade: --no-self-upgrade optionTimo Teräs2011-09-142-6/+18
| | | | | Use it to avoid self-upgrade loops in case something fails during the initial upgrade attempt.
* upgrade: reimplement self-upgrade (after solver merge)Timo Teräs2011-09-143-17/+42
|
* all: update copyright year statementTimo Teräs2011-09-1340-40/+40
|
* solver: add per-name specific flags, and fix the fix appletTimo Teräs2011-09-135-48/+51
|
* upgrade: fix context allocationTimo Teräs2011-09-091-0/+1
|
* pkg: consider script failure as non-fatalTimo Teräs2011-09-091-2/+6
| | | | | Make a loud warning if the script returns failure, but do not abort installation sequence because of that.
* print: minor cleanup to indented writerTimo Teräs2011-09-095-20/+18
|
* del: fix recursive deletion and messages (after solver merge)Timo Teräs2011-09-093-22/+158
| | | | | Deduce the world dependencies to remove locally, and same for the additional messages about packages not deleted.
* test: fix for updated solver apiTimo Teräs2011-09-091-20/+14
|
* applets: start using solver codeTimo Teräs2011-09-0919-1353/+533
| | | | | | | | | still todo: - 'fix' is missing - 'del -R' does not work - 'upgrade' does not do self-upgrade first ... and a lot of testing.
* solver: report 'complete' solutions with errorsTimo Teräs2011-09-055-38/+31
| | | | | | Allow to select packages that conflict in case we are looking for errors. This allows 'add --force' to install (on boot) the set of packages with minimum conflicts.
* solver: reintroduce install_if supportTimo Teräs2011-08-1815-58/+265
| | | | | | * each package name has two sorting positions, one which causes install_if triggers to be run, and other for bulk dependencies * fix also inverted ordering of package installations
* solver: move topology sorting to solver codeTimo Teräs2011-08-056-105/+104
| | | | | this allows quite some optimizations to running time and memory requirements.
* solver: generate proper error messagesTimo Teräs2011-08-0125-209/+304
| | | | | | | | | * the solver no longer does look-ahead locking of names (could be possibly optimized later); instead names are now always ordered strictly to properly detect the package names which are unsolveable * basic error tests added, so we can see the most likely problem in dependencies easily
* solver: don't consider package that we can't haveTimo Teräs2011-07-273-2/+27
| | | | | Packages that need (re-)installation but which are not available, are excluded now properly.
* solver: permutate each preferred solution firstTimo Teräs2011-07-276-57/+72
| | | | The first found solution is the most preferred one then.
* test: don't crash if the expected files are not thereTimo Teräs2011-07-271-4/+8
|
* Makefile: make it possible to override pkg-config via PKG_CONFIGNatanael Copa2011-07-271-3/+4
|
* solver: new package selection logic (which is not yet used)Timo Teräs2011-07-2631-10/+988
| | | | | | | | | | | | | * basic code for a backtracking, forward checking dependency satisfier * works better when there are tricky dependencies to solve (when can't just upgrade everything to most preferred versions) * the new code always evaluates all of 'world' constraints (old code just does incremental updates based on heuristics) * is probably somewhat slower than old code (probably unnoticeable difference in most cases) * makes easier to write support for provides and repository pinning * test applet and a bunch of test cases added which uses the new code * from the old feature set install_if is not yet implemented
* dot: applet to generate the dot attributed graph language filesTimo Teräs2011-07-243-1/+154
| | | | | | | | | | | | This applet can be used to generate data for graphviz tools. Useful to visualize package dependencies, and possible errors in the repository. Usage examples: apk dot gnome-desktop | tred | dot -Tpng gnome-desktop.png -- to generate simplified dependency chart of gnome-desktop apk dot --errors | dot -Tpng index-errors.png -- to generate chart visualizing dependency errors in index
* ver: database is not needed for version string checking and testsTimo Teräs2011-07-241-0/+2
|
* apk: improve indented printingTimo Teräs2011-07-225-20/+41
| | | | | * fixup the help messages to align up properly * refresh screen width on SIGWINCH
* apk_database: add APK_DEFAULT_ARCH for ppc, ppc64 and arm portsWilliam Pitcock2011-07-161-0/+6
|
* apk: use APK_DEFAULT_ARCH in version().William Pitcock2011-07-161-1/+1
|
* apk_database: move APK_DEFAULT_ARCH to headers so that we can use it in ↵William Pitcock2011-07-162-8/+10
| | | | version().
* apk: display command descriptions in command listWilliam Pitcock2011-07-161-5/+10
|
* cache: return error if cache sync or download failsTimo Teräs2011-07-111-3/+3
| | | | fixes #666
* index: handle errors instead of silently failingTimo Teräs2011-06-283-12/+41
| | | | | | Make indexer keep noise about errors that prevent index generation. Detect certain errors in the APKs better. And also have the applet return error in these scenarios.
* db: more fix for read-only cache remountingTimo Teräs2011-05-273-18/+15
| | | | | remount to read-write before trying to create the cache directory subdirs. fix a fd leak that might prevent remounting back to rw.
* db: remount read-only after the file handles have been closedNatanael Copa2011-05-271-6/+6
| | | | | The apk cache might be on the readonly media so we need wait with remounting til after atleast this filehandle is closed.
* apk-tools-2.1.0Timo Teräs2011-05-231-1/+1
|
* state: fix commit order of packagesTimo Teräs2011-05-231-6/+17
| | | | | | | commit 4e72075fbab introduced a bug where package installation might happen in wrong order (reminder for self to separate the package version deduction to separate step from installation ordering). this restricts the earlier commit to not mingle with the install order.