Timo Teräs
7a4647d27b
ver: handle pinned packages better
2012-02-15 14:28:29 +02:00
Timo Teräs
41fb3a4f9e
solver, db: repository pinning improvements
...
* solver internally calculates now using tags; not repository masks
* installeddb now contains the tag name where the package came from
-> we can now handle upgrades properly
* the pinning is still a preference, and not strictly enforced;
versioned dependencies may overrule preference
2012-02-15 13:57:36 +02:00
Timo Teräs
29064d88f3
ver: by default show only upgradeable packages
2012-02-14 16:34:10 +02:00
Timo Teräs
ab20d61832
audit: check dirent mode, uid and gid if requested
2012-02-14 16:31:40 +02:00
Timo Teräs
97bd260bfd
db: record file uid/gid/mode in installed db
2012-02-14 15:51:26 +02:00
Timo Teräs
087c587e57
db: allow directory to have sticky bit, and suid/sgid bits set
2012-02-10 23:08:10 +02:00
Timo Teräs
9ac8d87102
db, fix: more secure way to choose effective directory permissions
...
And implement --directory-permissions for fix-applet to reset all
directory uid, gid and modes.
2012-02-10 16:40:01 +02:00
Timo Teräs
f2e41a488e
db: fix directory permissions recalculation
2012-02-10 15:58:35 +02:00
Timo Teräs
29ebf435d7
db: smarter handling of directory owner, group and mode
2012-02-10 15:21:41 +02:00
Timo Teräs
dd923ed065
print: minimum screen width of 50
2012-02-10 15:20:57 +02:00
Timo Teräs
073df81973
blob: fix base64 decoding after previous optimizations
2012-02-10 14:19:53 +02:00
Timo Teräs
fe9b4a3888
blob: optimize spn and cspn
2012-02-08 17:01:14 +02:00
Timo Teräs
3320fba50d
db: increase hash sizes
2012-02-08 14:02:51 +02:00
Timo Teräs
4aa80564f9
blob: optimize digit and base64 decoding
2012-02-08 14:02:26 +02:00
Timo Teräs
ac1a8ac712
apk-tools-2.2.5
2012-02-02 16:31:11 +02:00
Natanael Copa
7d88cdc9e4
db: do not abort on bad repositories
...
Only show a warning if we have a non-existing repository or bad
repository signature but don't abort.
This is not to break compat with behaviour in previous releases.
2012-02-01 17:04:06 +01:00
Natanael Copa
ddd386157c
db: fix bug with --repository
...
The 'r' variable is overwritten and no longer holds the repository
number.
2012-02-01 13:41:25 +01:00
Timo Teräs
02f9400f8a
apk-tools-2.2.4
2012-02-01 09:46:54 +02:00
Timo Teräs
304dc4a692
pkg, db: fix signature checking for files without control part
...
Also clean up handling of signature failures for index files.
2012-01-31 15:49:04 +02:00
Timo Teräs
0f89565099
solver: fix regression from "calculate branch minimum penalty early"
...
Forgot to reset per-name penalty when it got locked by apply_decision.
This also fine tunes compare_package_preference() to always prefer
packages specified on command line speeding up calculation certain
complicated solutions.
2012-01-20 10:39:38 +02:00
Timo Teräs
00fd7b07f1
lua: fix compile error
2012-01-17 15:59:01 +02:00
Timo Teräs
27d6c85177
apk-tools-2.2.3
2012-01-17 15:11:19 +02:00
Timo Teräs
b3df78ed03
solver, upgrade: properly detect missing repository tags
...
* upgrade needs explicit check so we don't try self-upgrade
(which would print additional messages on screen)
* add can fix problems, so check against the new world
* merge the code in few places
2012-01-17 14:48:22 +02:00
Timo Teräs
eaaba3ee89
upgrade: make -a reset versioned dependencies like it used to
...
regression from upgrade to the new solver system.
2012-01-17 14:31:29 +02:00
Timo Teräs
64b03ab603
solver: fix change ordering of removed pages in relation to installed
2012-01-17 14:18:10 +02:00
Timo Teräs
12183024fd
solver: calculate branch minimum penalty early
...
Previously we would cache the penalty when evaluating the final
solution, and adding that until we backtrack to first topology
position changing that penalty. However, we can just keep track
of minimum penalty based on name state, and add it. This allows
us to bail out early on bad branches because we know in advance
how things will turn out.
2012-01-17 14:18:02 +02:00
Timo Teräs
60ee611620
db: print dependencies referring to missing tags instead of tags
2012-01-17 10:53:35 +02:00
Timo Teräs
fc57b73101
db: fix loading of world after previous commits
2012-01-16 10:29:49 +02:00
Timo Teräs
2ea61da9d9
add: make repository tag pinning stronger
...
Previously we would not upgrade just by doing "apk add foo@tag" if
foo was already installed. It required explicit '-u'. This allows
'apk add' to explicitly prefer the newly specified pinning.
2012-01-13 10:39:06 +02:00
Timo Teräs
1f9a36de68
db: support line feed as 'world' dependency separator
...
* default writing the world with spaces if a space is found
(for backwards compatibility) for now
2012-01-12 14:33:29 +02:00
Timo Teräs
30965aa867
solver: print repository tag when committing package changes
2012-01-12 11:33:04 +02:00
Timo Teräs
f1de353b81
db, solver: refuse committing changes if there is missing tags
2012-01-12 10:42:27 +02:00
Timo Teräs
2372692660
add: fail if repository tag does not exist
2012-01-12 10:27:09 +02:00
Timo Teräs
1de86529a9
pkg: fix writing of deps with tag and version specifier
...
It is really name(@tag)(>=version).
2012-01-06 13:42:27 +02:00
Timo Teräs
23c39085ce
add: print an error about malformed arguments
2012-01-06 13:40:55 +02:00
Natanael Copa
09b28210a2
info: display short info if packages are given
...
instead of just list all installed package
2012-01-06 10:38:23 +01:00
Natanael Copa
92c75d6b33
test: fix printf of size_t for 64 bit
2012-01-06 09:46:21 +01:00
Timo Teräs
3e8dc3da09
db: properly detect when pkg install trigger needs executing
...
call apk_pkg_install() and hlist_tail_ptr() only once. the latter
is O(n) and can get very slow.
2012-01-06 10:35:04 +02:00
Timo Teräs
bbc31806b9
common: fix apk_array copying, and additional size_t fixes
2012-01-06 10:25:28 +02:00
Timo Teräs
a80cdfe95b
apk-tools-2.2.2
2011-12-27 14:09:23 +02:00
Timo Teräs
34756e6b87
solver: report number of (mega)bytes used
2011-12-27 14:06:03 +02:00
Timo Teräs
83b098d357
update: report number of distinct packages available
2011-12-27 14:05:49 +02:00
Timo Teräs
415e41a072
info: -e and -W operate on database only (repos not needed)
...
.. so do not load them.
2011-12-24 15:52:35 +02:00
Timo Teräs
d80536b750
solver: fix error detection for certain unsatisfiability cases
...
did not properly detect as error if name could not be satisfied
due to being available in tagged repository which is not enabled.
2011-11-23 14:35:54 +02:00
Timo Teräs
49c06a6f10
apk-tools-2.2.1
2011-11-01 14:49:57 +02:00
Timo Teräs
716ee9e223
solver: fix zero score comparison
2011-11-01 14:44:39 +02:00
Timo Teräs
1aa962dbae
apk-tools-2.2.0
2011-11-01 14:20:35 +02:00
Timo Teräs
078e8b00d8
solver: return changeset even for partial solutions
...
otherwise --force does might not work during boot.
2011-11-01 08:40:50 +02:00
Timo Teräs
f13ec9cf5e
solver: consider world dependencies to determining exit score
2011-11-01 08:29:24 +02:00
Timo Teräs
e36e99f31d
cache: fix download
2011-10-31 20:47:52 +02:00