Timo Teräs
069c898984
state: fix a crash in error printing
2010-06-03 22:03:02 +03:00
Timo Teräs
ce3cf8bff9
db, pkg: fix triggers related crash
...
clean up the triggers properly, in proper order.
2010-06-01 16:46:53 +03:00
Timo Teräs
440cffef58
state: print missing package names on error
...
especially important if the package requested from command line
does not exist. otherwise we would not print an error at all.
2010-06-01 15:06:48 +03:00
Timo Teräs
038b672061
state: improve error messages from dependency failures
...
Print more information why installation changeset calculation failed.
Fixes #187 .
2010-06-01 11:49:32 +03:00
Timo Teräs
2165547bad
state: modify reinstallation prints
...
To print upgrading if package is actually being changed instead of
pure reinstall.
2010-05-27 16:19:14 +03:00
Timo Teräs
4fde5f101a
state: show changed packages as upgrades
...
If version is equal, but package contents are different we should
show the package being upgraded.
2010-05-27 16:01:29 +03:00
Timo Teräs
4a21764ee1
state: fix deletion of obsoleted dependencies
...
In addition to autocleaning dependencies on deletion, we need to
autoclean the old package on upgrade too. This is to make sure that
obsoleted dependencies (existed previously, but not in new package)
are removed where appropriate.
2010-05-27 11:34:17 +03:00
Timo Teräs
fe55da7074
package: don't leak signing key file fd
...
openssl BIO does not close the fd unless we explicitly tell it to
do so.
2010-05-26 14:30:08 +03:00
Timo Teräs
d9bf4aabff
search: add search for reverse dependencies in index
...
So it'll be easier to rebuild affected packages. Fixes #349 .
2010-05-19 16:49:32 +03:00
Natanael Copa
47bac8c29c
upgrade: reset versioned deps in world when doing upgrade -a
...
Doing "apk add file.apk" adds a versioned dependency to allow
downgrading, and sticky version. Most often this is to install
single packages from newer repository. So it would make sense
to reset them to non-versioned if doing:
apk upgrade -a
fixes #346
2010-05-12 06:08:18 +00:00
Timo Teras
87420aaf29
info: fix querying of removed, but referenced packages
...
Check that package name has packages associated with it before
dereferencing the pointer. Fixes #345 .
2010-05-05 08:56:06 +03:00
Timo Teras
f024add886
apk-tools-2.0.2
2010-03-16 10:24:55 +02:00
Timo Teras
e3f919a4f5
state: virtual packages are always installable
...
they do not have any package associated. this is indicated by
package with zero installed_size.
2010-03-15 09:16:14 +02:00
Timo Teras
b40b2f0429
state: check package availability always
...
even if we have only one package as candidate, we need to check
it's availability. otherwise we can endup with bad changeset
referring to unavailable package.
2010-03-10 14:55:31 +02:00
Timo Teras
73cbc38794
apk-tools-2.0.1
2010-03-04 16:40:54 +02:00
Timo Teras
ef7d467083
fetch: do not include installed non-repository files in search
...
we do not create mirror repositories from other valid repositories,
not from what was installed locally.
2010-03-04 14:01:37 +02:00
Timo Teras
4b29ea2a08
cache: do not download files existing in local repository
...
wget:ing local files results in error and is useless.
2010-03-01 11:27:27 +02:00
Timo Teras
49f5d8cb01
db: fix previous commit
...
add the missing variable.
2010-03-01 11:26:45 +02:00
Timo Teras
fcdb316ab7
db: read also non-repository package index if reading repository indexes
...
otherwise regeneration of non-repository index might go wrong or we
might delete too many files from cache when doing 'cache clean'.
2010-03-01 11:20:17 +02:00
Natanael Copa
2d7171b2e7
Merge branch 'master' into prog
2010-02-26 13:35:45 +00:00
Natanael Copa
028990d576
state: write status for each package change
...
prints like:
(1/12) Installing...
(2/12) Installing...
etc...
2010-02-26 13:27:09 +00:00
Natanael Copa
69b5357390
state: show percent in progress bar
...
This makes things a little bit nicer when installing from network with
slow lines.
2010-02-26 13:26:16 +00:00
Natanael Copa
9f3fbedcc9
add: print all failing packages instead of only first
...
We want see all packages that fails to install and not only the first
2010-02-26 12:57:06 +00:00
Timo Teras
3f9fe4c28b
db: keep packages with no files with installed status
...
got broke few commits ago when apk_pkg_installed() call was
moved to happen after the package name has been read.
2009-12-25 14:15:10 +02:00
Natanael Copa
d67ee300b6
state: Default interactive action is Yes
...
When pressing only <enter> on the question "..continue [Y/n]?" then
lets take that as a "yes"
2009-12-25 07:17:06 +00:00
Timo Teras
48802be57f
apk-tools-2.0
2009-12-23 16:08:44 +02:00
Timo Teras
b58ec46f7c
db: make fdb load package description before calling pkg_install
...
this is now mandatory after the overlay fixes. otherwise the
package will not get listed as installed.
2009-12-22 17:33:44 +02:00
Natanael Copa
d4f0b2ab70
db: check the overlay files package name rather than the ovl file itself
2009-12-21 16:39:53 +00:00
Timo Teras
884fabbf30
db: honor overlay file even for protected paths
2009-12-21 18:12:45 +02:00
Timo Teras
6417de4d10
apk: remove the unneeded --never-overwrite
...
turns out the logic does not work with overlays as expected due
to busybox symlinks being unmanaged. remove the useless option.
2009-12-21 16:53:47 +02:00
Timo Teras
f44f34811d
db: accept files in overlay without directory
...
appears this is possible, so support it.
2009-12-21 16:31:58 +02:00
Timo Teras
f2a7800b22
db: use proper instance for overlay file entries
...
lookup proper directory instance as the tar output might not be
linear.
2009-12-21 14:30:33 +02:00
Timo Teras
d0909569c6
apk: --overlay-from-stdin
...
get list of overlay files from stdin, so those do not get overwritten.
2009-12-21 14:14:02 +02:00
Timo Teras
366e7d07ae
db: read time only once when writing scriptsdb
...
less syscalls.
2009-12-21 11:42:39 +02:00
Timo Teras
507d34d64f
apk-tools-2.0_rc7
2009-11-24 13:29:00 +02:00
Natanael Copa
407ef801d9
db: check if target exist before renaming tempfile
...
do not overwrite target if we have --never-overwrite and target exists.
ref #197
2009-11-24 08:25:24 +00:00
Timo Teras
98de535355
archive: overwrite protection needs to use real filename
...
otherwise we always extract the file as .apk-new and the database
side just overwrites.
2009-11-06 16:16:49 +02:00
Timo Teras
4dd183f3c1
version: add support for version control suffixes
...
add cvs, svn, git and mercurial tags for creating snapshot
packages.
2009-11-06 13:29:58 +02:00
Timo Teras
ff45ff3152
version: fix remaining version comparisons
...
even more corner cases found which were broke. now all tests
should pass.
2009-11-06 13:21:00 +02:00
Timo Teras
48930b9fe0
test: add test cases for version comparing
...
so i don't get to break version compares again.
2009-11-06 13:20:30 +02:00
Timo Teras
a93a35eeca
apk: add --never-overwrite flag (ref #197 )
...
to never ever overwrite a while in the filesystem the user knows
about. it gives the impression of extraction succeeding even though
nothing was done. this is inteded to be used only for bootstrapping
with overlay.
2009-11-06 11:31:03 +02:00
Timo Teras
44ac0b06af
version: fix comparison of version again
...
-t 1.3-r0 1.3.1-r0 was broke
2009-11-05 17:49:12 +02:00
Timo Teras
a7360395ea
db: fix migration and pruning of symlinks to dirs
...
the old code treated a symlink to directory as file; it tried
to calculate regular has of it. fix this by: 1) using no follow
on migration and pruning stats, and 2) the helper function to
check if it's point to directory and not calculate hash in that
case. fixes #188 .
2009-10-26 09:46:09 +02:00
Timo Teras
cc4644a54e
version: fix comparision of pre-suffixes
...
got broke in 0b9bfa8d52
which
fixed another corner case. hopefully it's good now. fixes #191 .
2009-10-26 09:33:12 +02:00
Timo Teras
6f21645ecf
apk-tools-2.0_rc6
2009-09-25 17:52:43 +03:00
Timo Teras
aebe73549f
pkg: fix parsing of empty dependencies
...
if the dependencies are empty with only trailing new line, the
parsing was incorrect. fix the new line check.
2009-09-16 20:23:34 +03:00
Timo Teras
d3861d70a8
version: --index output to stdout instead of stderr
2009-09-04 11:38:19 +03:00
Timo Teras
a8c3125af4
apk-tools-2.0_rc5
2009-09-03 18:03:33 +04:00
Natanael Copa
330dc5511a
index: do not segfault if there are no description
2009-09-03 13:15:10 +00:00
Timo Teras
58e771303c
index, version: support for repository descriptions ( fixes #141 )
...
ability embed description information to repository indexes
(e.g. repository name and version) and show it via "apk version -I".
2009-09-03 14:56:24 +04:00