Commit Graph

1367 Commits (a6736532001fd625f1ab3dd82abc2a4c5366c79c)

Author SHA1 Message Date
Timo Teras 72f2503874 apk-tools-2.0_pre11 2009-05-06 16:19:17 +03:00
Natanael Copa d8cddc4329 change apk audit letters to correspond to old sfic/lbu letters
A = "added"
U = "updated"
2009-05-06 13:15:46 +00:00
Natanael Copa 5daa663a86 info: let -e print which packages are installed 2009-04-21 12:23:34 +00:00
Natanael Copa b0921ebac5 info: do not read the repositories as this tool only query the statedb
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.
2009-04-21 11:39:16 +00:00
Natanael Copa 0dfbee9537 search: do not read the state db as this tool only query repos
This should be slightly faster and comsume less memory in theory
2009-04-21 11:37:48 +00:00
Natanael Copa 9e70b1c9c7 url: rename to .backup rather than unlink before wget 2009-04-21 11:15:24 +00:00
Natanael Copa 74b5e4f535 db: do not assume root ends with '/' 2009-04-21 08:51:18 +00:00
Natanael Copa 64e0adf0c7 url: unlink file before trying to download 2009-04-21 08:40:50 +00:00
Natanael Copa 9d22718d1d db: improve error reporting
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.
2009-04-21 08:17:17 +00:00
Natanael Copa 1ae6f9d972 db: fix bug in apk_repository_update() 2009-04-21 08:12:12 +00:00
Natanael Copa 8a47023d3e Makefile: add -nopie to LDFLAGS 2009-04-21 07:40:11 +00:00
Timo Teras 4c2bfd9ded db: cache index files, 'update' applet
Cache non-local index files always locally.
Introduce 'update' applet to force refresh of cached index files.
Fixes #19.
2009-04-16 20:05:22 +03:00
Timo Teras aaa3c227b8 build: eliminate "Nothing to be done for `all'" message 2009-04-16 18:06:35 +03:00
Timo Teras 97a71cc5c3 build: improve dependency file generation 2009-04-16 17:54:28 +03:00
Timo Teras ec5b63c5e4 pkg: clean up writing of dependencies 2009-04-16 17:05:27 +03:00
Timo Teras 968dfbb8b3 pkg: apk_deps_del helper introduced 2009-04-16 16:32:04 +03:00
Timo Teras 4e08c87621 del: first remove all targets from world, and then calculate changes 2009-04-16 15:37:53 +03:00
Timo Teras d6f4fcacd1 pkg: fix apk v1.0 URL field import 2009-04-16 14:03:59 +03:00
Timo Teras 18db1c4cd3 db: fix addition of .apks not in any repository 2009-04-16 14:03:17 +03:00
Timo Teras af1b460033 build: rewrite make system to something slightly similar to kbuild
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.
2009-04-16 13:49:16 +03:00
Timo Teras 9c5200f0e1 todo: update 2009-04-15 17:02:13 +03:00
Timo Teras 371b68b8bf state: print also the changeset affect on installed-size 2009-04-15 17:01:46 +03:00
Timo Teras 6f7719d3f4 state: fix installation of package broken by autoclean patch 2009-04-15 16:38:22 +03:00
Timo Teras 55b7b89e65 state: auto clean packages
Automatically remove packages that are no longer required by a top
level dependency.
2009-04-15 16:05:17 +03:00
Timo Teras a9b6d18f7f state: make package deletion safer
Refuse to delete explicitly specified top-level packages unless
--force is specified.
2009-04-15 13:20:35 +03:00
Natanael Copa 33da51c596 fetch: close downloaded file. unlink on failure 2009-04-15 10:00:14 +00:00
Timo Teras ebe43a5e01 state: do not derefence unallocated memory
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.
2009-04-15 12:44:24 +03:00
Timo Teras 33c2bc0d1a state: more uninitialized variables initialized 2009-04-15 12:41:01 +03:00
Natanael Copa cc1a0187ee state: style fix, init variable at declaration 2009-04-15 09:38:15 +00:00
Natanael Copa 0c1933a4d6 state: fix bug with uninitialized variable 'latest' 2009-04-15 09:29:00 +00:00
Timo Teras 9567337fd2 fetch: new applet to download .apk files
Fixes #24.
2009-04-15 09:56:09 +03:00
Timo Teras a23f6f4afb state: rework changeset calculation algorithm
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.
2009-04-14 18:48:02 +03:00
Timo Teras 7cef96c30d blob: add strspn helpers 2009-04-14 18:46:35 +03:00
Timo Teras 024480aca0 info: option '-r' to print "required by" info 2009-04-14 09:35:02 +03:00
Timo Teras c11b70c7f0 db: track reverse dependencies
This will be used later by the commit change calculator (for improved
changeset calculation, ref #7). Will be also used by "apk info" to show
reverse dependencies or "required by" information.
2009-04-14 09:21:30 +03:00
Timo Teras f4210298ad build: use version from git describe if available 2009-04-14 08:56:06 +03:00
Natanael Copa 355626171d version: avoid end up in endless loop if we compare 2 equal invalid versions
fixes issue with apk version -t asdf asdf
2009-04-13 09:18:48 +00:00
Natanael Copa 916c396c02 version: allow more digits come after letter
This is so we can handle arpwatch-2.1a15
This makes us not 100% compatible with Gentoo
2009-04-13 09:13:09 +00:00
Natanael Copa 01a028cc2f version: allow token letter after digit_or_zero
Otherwise we only allow letters after first digit, i.e 2a, 2b but not
2.2a, 2.2b etc.
2009-04-13 08:37:25 +00:00
Natanael Copa d9879b72d5 version: allow only TOKEN_LETTER after a digit 2009-04-03 21:42:15 +02:00
Natanael Copa 8fb4f6d17c ver: added --check/-c option to vaildate given version string 2009-04-03 21:40:53 +02:00
Natanael Copa 5381425012 ver: test given version strings with -t or --test 2009-04-03 19:53:44 +02:00
Natanael Copa 6e10456967 search: use fnmatch so we have support for wildcards 2009-04-03 12:16:12 +00:00
Timo Teras 8d44e8ed5c 2.0_pre10 2009-03-20 12:56:48 +02:00
Timo Teras 207bff6e6c io: implement write cache
speeds up writing of package / file database.
2009-03-17 14:17:35 +02:00
Timo Teras 7735cc644d pkg: write dependencies directly file instead of buffer
So we don't get artificial limits on the amount of dependencies
(fixes #8).
2009-03-17 13:19:06 +02:00
Cameron Banta 57391d1e4c Created search applet 2009-03-07 11:34:37 +02:00
Cameron Banta e93cb1ffe5 Added -o option to apk info to list repository packages 2009-03-06 08:06:08 +02:00
Timo Teras 9b48288831 2.0_pre9 2009-03-04 11:32:47 +02:00
Natanael Copa 2b10123399 db: unlink apk-new if it is identical to existing config 2009-03-04 09:27:59 +00:00