summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* apk-tools-2.0_pre12apk-tools-2.0_pre12Timo Teras2009-05-251-1/+1
|
* Revert "add: replace coffe-cup with starwars"Timo Teras2009-05-252-4/+48
| | | | | | | | This reverts commit 0906a1c7de37ba54f29e9dbabbbd5ea069258cef. Conflicts: src/add.c
* state: upgrade deps for given packages to add -uNatanael Copa2009-05-241-4/+4
|
* add: fix segfault when no params are givenLinux User2009-05-211-1/+2
|
* add: replace coffe-cup with starwarsNatanael Copa2009-05-211-48/+4
| | | | saves space
* add: coffe-cupNatanael Copa2009-05-211-0/+49
|
* add: fix segfault when no packages are givenNatanael Copa2009-05-191-1/+1
|
* db: warn rather than fail with error if a repo index fails to loadNatanael Copa2009-05-191-10/+5
|
* db: fix bug that made inverted new installs and upgradesNatanael Copa2009-05-181-1/+1
| | | | We upgrade when we have an oldpkg.
* add: create csum for virtuals. only add the virtual to worldNatanael Copa2009-05-151-2/+14
|
* add: improve error reporting for virtual packagesNatanael Copa2009-05-151-5/+7
| | | | | | By locking all the given dependendencies for virtual packages first we can catch invalid deps and report those. This is alot more helpful than just reporting "Unable to install <virutalpkg>"
* add: support for virtual meta packagesNatanael Copa2009-05-143-36/+85
| | | | | | | | implements 'apk add --virutal metaname dep1 dep2...' where metaname will be an empy meta package with dep1 and dep2 as dependencies. This is useful to prevent abuild to add each makedepend to world which causes some headache when it comes to unintalling them after sucessful build.
* index: fix segfault bug when trying to deleting an unresolved depNatanael Copa2009-05-141-1/+1
|
* fix uninitialized variable bugNatanael Copa2009-05-141-1/+1
|
* index: support for -d to delete packages from given indexNatanael Copa2009-05-123-5/+63
| | | | | | | | | The syntax is: apk index -d /path/to/APK_INDEX.gz pkg... It does not seem like its possible to remove packages in the db so we trick apk_db_index_write() by setting the repo to on-zero. It's still not perfect since it does not recalculate the dependencies.
* fix misc compiler warnings about unintialized variables.Natanael Copa2009-05-112-3/+4
| | | | The compiler is actually right about those.
* add: delay state initialization til we have all pkgs in dbNatanael Copa2009-05-111-5/+9
| | | | | | | | | The state size is taken from name_id and cannot be extended. So we must wait with initializing the state til we have all packages added to the db. We must also always allocate the package name, incase its not in the repository. This is done with apk_db_get_name().
* make: test for .git existence before using git describe to set versionNatanael Copa2009-05-081-1/+1
|
* apk-tools-2.0_pre11apk-tools-2.0_pre11Timo Teras2009-05-061-1/+1
|
* change apk audit letters to correspond to old sfic/lbu lettersNatanael Copa2009-05-061-2/+2
| | | | | A = "added" U = "updated"
* info: let -e print which packages are installedNatanael Copa2009-04-211-14/+30
|
* info: do not read the repositories as this tool only query the statedbNatanael Copa2009-04-213-15/+18
| | | | | | | | This allows you to query the state db even if you do not have write permissions in cache dir (which is needed if you have remote repositories) This should speed up things and save some memory if you have big and slow remote repositories.
* 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
* url: rename to .backup rather than unlink before wgetNatanael Copa2009-04-211-1/+3
|
* db: do not assume root ends with '/'Natanael Copa2009-04-211-4/+4
|
* url: unlink file before trying to downloadNatanael Copa2009-04-211-0/+1
|
* db: improve error reportingNatanael Copa2009-04-211-6/+5
| | | | | | | apk_db_add_repository does its own error reporting and does not set errno reliable. This patch also tell which repository it failed to load the index for rather than just say it failed to open "APK_INDEX.gz" which does not tell much.
* db: fix bug in apk_repository_update()Natanael Copa2009-04-211-1/+1
|
* Makefile: add -nopie to LDFLAGSNatanael Copa2009-04-211-0/+1
|
* db: cache index files, 'update' appletTimo Teras2009-04-166-15/+177
| | | | | | Cache non-local index files always locally. Introduce 'update' applet to force refresh of cached index files. Fixes #19.
* build: eliminate "Nothing to be done for `all'" messageTimo Teras2009-04-161-1/+5
|
* build: improve dependency file generationTimo Teras2009-04-161-3/+2
|
* pkg: clean up writing of dependenciesTimo Teras2009-04-168-99/+108
|
* pkg: apk_deps_del helper introducedTimo Teras2009-04-163-12/+23
|
* del: first remove all targets from world, and then calculate changesTimo Teras2009-04-161-4/+7
|
* pkg: fix apk v1.0 URL field importTimo Teras2009-04-161-1/+1
|
* db: fix addition of .apks not in any repositoryTimo Teras2009-04-161-1/+5
|
* build: rewrite make system to something slightly similar to kbuildTimo Teras2009-04-164-103/+303
| | | | | | Tracks now probler header file dependencies and command line parameters used to build files. E.g. changing CFLAGS rebuild all C-files. And changing version rebuild now the files where it's used.
* todo: updateTimo Teras2009-04-151-8/+2
|
* state: print also the changeset affect on installed-sizeTimo Teras2009-04-151-2/+13
|
* state: fix installation of package broken by autoclean patchTimo Teras2009-04-151-2/+3
|
* state: auto clean packagesTimo Teras2009-04-151-45/+164
| | | | | Automatically remove packages that are no longer required by a top level dependency.
* state: make package deletion saferTimo Teras2009-04-152-5/+13
| | | | | Refuse to delete explicitly specified top-level packages unless --force is specified.
* fetch: close downloaded file. unlink on failureNatanael Copa2009-04-151-0/+3
|
* state: do not derefence unallocated memoryTimo Teras2009-04-152-1/+8
| | | | | Enforce name_id to be within apk_state allocated area. New apk_name:s can be created later for e.g. unknown packages requested at command line.
* state: more uninitialized variables initializedTimo Teras2009-04-151-1/+1
|
* state: style fix, init variable at declarationNatanael Copa2009-04-151-2/+2
|
* state: fix bug with uninitialized variable 'latest'Natanael Copa2009-04-151-1/+1
|
* fetch: new applet to download .apk filesTimo Teras2009-04-159-26/+214
| | | | Fixes #24.
* state: rework changeset calculation algorithmTimo Teras2009-04-1413-236/+581
| | | | | | | | | | | | | | | | | | | | | | | | Calculate changesets directly by stabilizating the package graph instead of recalculating the whole graph and then diffing (similar approach as seen in 'smart' package manager). The algorithm is not complete: defferred search space forking is missing. So you don't always get a solution on complex graphs. Benefits: - usually the search state tree is smaller (less memory used) - speed relational to changeset size, not database size (usually faster) - touch only packages related to users request (can work on partitially broken state; upgrades only necessary packages, fixes #7) Also implemented: - command prompt to confirm operation if packages are deleted or downgraded - requesting deletion of package suggests removal of all packages depending on the package being removed (you'll get list of packages that also get removed if you want package X removed) - option --simulate to see what would have been done (mainly for testing) - an untested implementation of versioned dependencies and conflicts A lot has changed, so expect new bugs too.