Commit Graph

1431 Commits (e8650d4d44d32a3a605283d921e535fff3a17089)

Author SHA1 Message Date
Timo Teras 4562f44f9b bstream: make tokenizable and load index using bstream
some fixes on index reading code too.
2009-07-14 09:33:47 +03:00
Timo Teras e69b81f525 io: move csumming away from bstream to gunzip
in future we want to checksum on gzip boundary basis, not the
full file.
2009-07-13 20:37:03 +03:00
Timo Teras 6b3444ed38 apk-tools-2.0_pre14 2009-07-13 14:38:30 +03:00
Timo Teras b30024d2bd openssl: register engines, and use oneshot digest when possible
to actually get hardware acceleration if available.
2009-07-13 14:28:52 +03:00
Timo Teras 3cbccbaf99 gunzip: accept concatenated gzip streams
allow .apk to consist of multiple separate gzip streams which
are just concatenated together.
2009-07-10 13:53:47 +03:00
Natanael Copa fa47cadb98 db: removed apk_repository_update_all() as its no longer needed
We use APK_UPDATE_CACHE apk_flag instead.
2009-07-09 06:25:27 +00:00
Natanael Copa d931f9fe5c ver: implement --limit
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 '?'.
2009-07-09 08:17:58 +02:00
Natanael Copa 080fa825dd implement --update-cache option
This will update the repository cache upon db_open.
2009-07-09 06:08:44 +00:00
Timo Teras f1125dfcde db: check cache directory early
we need to know if caching is enabled, before the repositories are
added. otherwise the cache is not used properly at db opening time.
2009-07-08 16:19:53 +03:00
Timo Teras a3d19b5c0d apk: initialize openssl
add all ciphers and built-in engines so we get e.g. hw acceleration
of sha1 when available.
2009-07-08 16:19:06 +03:00
Timo Teras b54ff5dd1e build: link zlib dynamically, use --as-needed
use pkgconfig of zlib instead of hard requiring it. and link in
the pkg-config libs with --as-needed as not all of the openssl
libs are really required.
2009-07-08 10:46:38 +03:00
Timo Teras bf094dc5ea csum: use openssl instead
instead of having static md5 implemenation, use the openssl
library for digest functions.
2009-07-08 10:45:49 +03:00
Timo Teras c84196e0d3 apk: add --wait option to wait for exclusive lock (fixes #26) 2009-07-07 10:30:54 +03:00
Timo Teras 1531192cb9 add: ignore install failures on 'apk add --force'
and use this option in initramfs, so we are likely to get an usable
environment even if some packages from world are missing. fixes #50.
2009-07-07 10:03:30 +03:00
Timo Teras 812a6a3167 ver: fix output indentation 2009-07-07 09:45:09 +03:00
Timo Teras dc5c436c5a cache: delete also wget temporary files
check for the full filename to match an expected pattern or
delete it (so we delete files with .new, .new.backup, etc.).
final part of remote package caching: fixes #49.
2009-07-07 09:40:59 +03:00
Timo Teras b551c3b081 cache: use changeset to figure out downloadables
that way we get the same result as the 'apk add world' at boot
time; it might differ from currently installed set (ref #49).
2009-07-07 09:33:13 +03:00
Timo Teras 1a54de02b5 db: open flags revisited
more fine grained control what to load, and rename some of the
flags to be shorter.
2009-07-07 09:27:56 +03:00
Natanael Copa 4d940c7932 fetch: respect --simulate option 2009-07-06 08:48:25 +00:00
Timo Teras f503502cc0 apk-tools-2.0_pre13 2009-07-02 15:51:01 +03:00
Natanael Copa d313c5e3cb info: fix compiler warning on x86_64
printf %i does not work so well with size_t on 64 bit.
Use %zu which seems to be portable enough.
2009-06-30 09:43:58 +00:00
Timo Teras 9858ffff69 cache: new applet (ref #49)
Administrative tool to download or delete files to/from the cache.
2009-06-29 11:22:55 +03:00
Timo Teras 233918e518 db: cache packages (ref #49)
If /etc/apk/cache is a symlink to directory, a copy of all installed
packages is stored there, and the index of remote repositories will
be there instead of /var/lib/apk. This enables to reconstruct running
system during boot.

Left as todo: remove cached copy when the package is removed, and
additional apk applet to download missing packages to cache and/or
remove extra items.
2009-06-29 09:29:57 +03:00
Timo Teras fac4cdb3fa blob: function to checksum a blob
And use it in couple of places. Some whitespace fixes too.
2009-06-28 18:52:40 +03:00
Timo Teras 7a29678aac help: auto construct help
And add some more verbosity to the help message.
2009-06-25 15:14:07 +03:00
Timo Teras 3a48856475 upgrade: add --available option
That will make the upgrade prefer packages available in repositories.
This is good if one want's to downgrade packages by removing an experimental
repository. Or to force re-install of locally built vs. repository version
when the package version are same, but checksum is different. Fixes #51.
2009-06-25 11:09:40 +03:00
Timo Teras 4d04bd8a46 upgrade: new applet
Currently just goes through all world dependencies and updates them
where possible (ref #51).
2009-06-25 10:31:05 +03:00
Natanael Copa 5eab547de6 package: removed debug code 2009-06-22 09:41:49 +00:00
Natanael Copa 5b75b40bf9 version: added apk_version_compare_blob() function
We want be able to compare blobs so we basicly revert the old change,
and make a wrapper that takes version strings.
2009-06-22 11:08:39 +02:00
Natanael Copa 4bbed2d648 ver: only compare the given packages, show version
make apk_version_compare() take strings rather than blobs
add apk_pkgversion_compare(), a wrapper that takes packages
2009-06-20 12:38:07 +02:00
Natanael Copa cb074581f0 db: add function apk_repository_update_all
We might want to add an --update-index option to misc applets. For
example:

  apk add --update-index -u package
  apk version --update-index
2009-06-19 19:01:15 +02:00
Natanael Copa b669e488ed info: support for -d, --description
and re-arrange the order of displayed info
2009-06-19 18:35:17 +02:00
Natanael Copa 01268f7f01 info: allow multiple subactions at the same run
By using a bitmask we can combine subactions
2009-06-19 18:20:27 +02:00
Natanael Copa 7703f981d9 info: add size and webpage to usage 2009-06-19 17:36:05 +02:00
Natanael Copa 378ae7b02c info: add -w,--webpage and -s,--size options 2009-06-19 17:29:45 +02:00
Natanael Copa 61213c4018 improve --help output
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.
2009-06-19 15:40:37 +02:00
Natanael Copa 20a1217e86 add: support for forced versions
Support version numbers specified with packages. For example:

 apk add 'busybox<1.14'
 apk add 'squid=>3.0'
2009-06-16 09:59:21 +00:00
Natanael Copa d8b1b851c7 fetch: use lstat to verify filesize on existing targets
since we dont verify the checksum we dont need to calculate it
Speed up when you try fetch lots of stuff thats already there.
2009-06-16 09:57:34 +00:00
Natanael Copa 0dfc53b0c3 state: bugfix in the package version selector 2009-06-16 09:55:45 +00:00
Timo Teras 49c904c993 io: fix mmap bstream fd leak
We need to close the fd on destruction. This is what the corresponding
istream variant does too.
2009-06-11 13:03:10 +03:00
Natanael Copa 3646350479 fetch: readlink does not end buffer with \0
According the manpage readlink(2) does not append a null byte to buf.
So we have to do it ourselves.
2009-06-11 09:21:17 +00:00
Natanael Copa 64a85ec65d fetch: do not create hardlinks to softlinks but to softlink targets
Otherwise the iso image will have softlinks which is not what we want
2009-06-11 08:39:51 +00:00
Natanael Copa cd5d44fa9d fetch: removed debug message
leftovers from a debug session.
2009-06-09 09:58:34 +00:00
Natanael Copa 50cdcca833 fetch: added --link/-L option
fixes #42

This will also fix a bug that left an empty file in destination dir when
source file did not exist in repository.

There are still issues with paths longer than 255 chars.
2009-06-09 11:12:06 +02:00
Timo Teras 9c4fdf9ead build: create archive directly from git tree
So we don't get local modifications or extra files in the tarball.
2009-05-27 14:46:48 +03:00
Natanael Copa c8c9851369 fetch: fix fd leak
we should always close the in-stream, not only on failure.
2009-05-26 14:23:12 +00:00
Timo Teras fed1474d5a apk-tools-2.0_pre12 2009-05-25 17:00:11 +03:00
Timo Teras 9b0c0a2053 Revert "add: replace coffe-cup with starwars"
This reverts commit 0906a1c7de.

Conflicts:

	src/add.c
2009-05-25 16:58:32 +03:00
Natanael Copa d584b19c32 state: upgrade deps for given packages to add -u 2009-05-24 15:20:35 +02:00
Linux User 651aa71ac2 add: fix segfault when no params are given 2009-05-21 20:24:07 +00:00