OpenBSD CVS

CVS log for src/usr.sbin/pkg_add/pkg_add


[BACK] Up to [local] / src / usr.sbin / pkg_add

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.487 / (download) - annotate - [select for diffs], Sun May 21 08:06:03 2023 UTC (12 months, 1 week ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.486: +3 -5 lines
Diff to previous 1.486 (colored)

v5.36, trivial move

Revision 1.486 / (download) - annotate - [select for diffs], Tue May 4 10:19:28 2021 UTC (3 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.485: +2 -2 lines
Diff to previous 1.485 (colored)

okay, prevent pkg_* from looking into /usr/local BUT special-case quirks

Revision 1.485 / (download) - annotate - [select for diffs], Tue May 4 08:53:15 2021 UTC (3 years ago) by espie
Branch: MAIN
Changes since 1.484: +2 -2 lines
Diff to previous 1.484 (colored)

not yet, need to figure out how to fix quirks first

Revision 1.484 / (download) - annotate - [select for diffs], Tue May 4 08:39:19 2021 UTC (3 years ago) by espie
Branch: MAIN
Changes since 1.483: +2 -1 lines
Diff to previous 1.483 (colored)

prevent the base pkg tools from looking under /usr/local

Revision 1.483 / (download) - annotate - [select for diffs], Sat Dec 27 23:59:44 2014 UTC (9 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.482: +20 -9 lines
Diff to previous 1.482 (colored)

prepare things slightly further, FwUpdate still not active...

Revision 1.482 / (download) - annotate - [select for diffs], Thu Jan 23 11:45:22 2014 UTC (10 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.481: +2 -2 lines
Diff to previous 1.481 (colored)

reorg code: make "signing only" a separate command, as it has nothing in
common with pkg_create.

Move the signing part in its own module, so that PkgCreate can reuse it
for "signing while we build" mode.

naddy@ agrees

Revision 1.481 / (download) - annotate - [select for diffs], Mon Aug 6 00:00:28 2012 UTC (11 years, 9 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.480: +3 -11 lines
Diff to previous 1.480 (colored)

kill pkg(1) for good. with help from espie.
espie@ ok.

Revision 1.480 / (download) - annotate - [select for diffs], Fri Jul 13 16:47:49 2012 UTC (11 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.479: +20 -1043 lines
Diff to previous 1.479 (colored)

do not install the pkg(1) front-end stub in /usr/sbin anymore, everyone
uses the '_' variants
ok espie

Revision 1.479, Fri Jun 4 13:19:39 2010 UTC (14 years ago) by espie
Branch: MAIN
Changes since 1.478: +1 -1 lines
FILE REMOVED

move code around, so that commands can be used as modules.
pkg becomes the start hub, which does nothing except require the
correct module.
Saner code wrt Add/Delete, and more sharing.

Revision 1.478 / (download) - annotate - [select for diffs], Mon May 10 09:17:54 2010 UTC (14 years ago) by espie
Branch: MAIN
Changes since 1.477: +27 -27 lines
Diff to previous 1.477 (colored)

whitespace fixes

Revision 1.477 / (download) - annotate - [select for diffs], Sat Apr 17 16:07:18 2010 UTC (14 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.476: +1 -0 lines
Diff to previous 1.476 (colored)

work-around !found error.

Revision 1.476 / (download) - annotate - [select for diffs], Sat Apr 10 10:18:12 2010 UTC (14 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.475: +1 -1 lines
Diff to previous 1.475 (colored)

work around a limitation of tracker/updateset: hints are tagged as to_update.
So if we replace an existing package, we may end up merging with ourselves
because of the initial hint. Make sure we create an older handle even in that
case.

Revision 1.475 / (download) - annotate - [select for diffs], Mon Apr 5 13:46:24 2010 UTC (14 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.474: +37 -24 lines
Diff to previous 1.474 (colored)

clean-up validate_plists a bit, so that it starts with a clean state.
new feature: if a normal updateset order does not fit, let the user decide
to do a "dangerous update", by deleting older packages first (if they fit).
tweak really_add to do so: move delete old packages out of the way, and add
a new state variable (extracted_first) to distinguish between both replace
modes.

Revision 1.474 / (download) - annotate - [select for diffs], Mon Mar 22 20:38:44 2010 UTC (14 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.473: +0 -2 lines
Diff to previous 1.473 (colored)

clean up the ProgressMeter code, create a specific class if a Term
is around.
start using stuff from termcap, specifically, cleareol, and move to hp.
use the full line when we can, cram 100% if we can.
(this should flicker much less on slow terminals).

clean-up the install-and-progress bits to be in progressmeter, this removes
some code.

have pkg_create follow the same pattern as the others, with a state.
This allows us to unify error messages a bit.

Revision 1.473 / (download) - annotate - [select for diffs], Sat Mar 6 11:36:53 2010 UTC (14 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.472: +7 -1 lines
Diff to previous 1.472 (colored)

consistent error. exit(1) if something bad happened.
(fixes some errors in ports)

Revision 1.472 / (download) - annotate - [select for diffs], Mon Mar 1 12:29:31 2010 UTC (14 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.471: +3 -3 lines
Diff to previous 1.471 (colored)

slightly terser messages, better use of terminal line

Revision 1.471 / (download) - annotate - [select for diffs], Tue Jan 26 11:31:08 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.470: +9 -3 lines
Diff to previous 1.470 (colored)

fix merging behavior when merging doesn't occur:
- display message that says "this update didn't merge"
- be more specific in return values, because we want to distinguish between
we merged some stuff -> compute full depends / we didn't -> proceed

thanks to Florent Tribouilloy for being my guinea pig ;)

Revision 1.470 / (download) - annotate - [select for diffs], Tue Jan 12 20:14:09 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.469: +7 -1 lines
Diff to previous 1.469 (colored)

allow 'update-only' installs

Revision 1.469 / (download) - annotate - [select for diffs], Tue Jan 12 10:57:05 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.468: +1 -2 lines
Diff to previous 1.468 (colored)

bump this to updater, so that progress is shown again.

Revision 1.468 / (download) - annotate - [select for diffs], Mon Jan 11 13:40:58 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.467: +1 -0 lines
Diff to previous 1.467 (colored)

quirks is special here too, oops.

Revision 1.467 / (download) - annotate - [select for diffs], Mon Jan 11 12:49:53 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.466: +41 -4 lines
Diff to previous 1.466 (colored)

allow installation to proceed even without -r if it's an actual update
(all markers match, conflict and pkgpath, and the pkgname is newer if it's
the same stem/flavor combo)

Revision 1.466 / (download) - annotate - [select for diffs], Mon Jan 11 12:25:38 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.465: +9 -6 lines
Diff to previous 1.465 (colored)

move the oldlibs code into its separate file, prior to fixing it.
allow replacement if it only touches partial or libs

Revision 1.465 / (download) - annotate - [select for diffs], Sun Jan 10 21:27:59 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.464: +1 -1 lines
Diff to previous 1.464 (colored)

unify options a bit: use -Dname=value for defines uniformously (e.g., deprecate
-F keyword heavily).

Revision 1.464 / (download) - annotate - [select for diffs], Sun Jan 10 16:03:49 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.463: +24 -7 lines
Diff to previous 1.463 (colored)

use full signatures to avoid downgrades.
remove double check in update that properly belongs in pkg_add
replace has_new_sig by has_different_sig, with better diagnostic messages.

Revision 1.463 / (download) - annotate - [select for diffs], Tue Jan 5 12:01:07 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.462: +12 -20 lines
Diff to previous 1.462 (colored)

tracker and updater are also auto-cached

Revision 1.462 / (download) - annotate - [select for diffs], Tue Jan 5 11:42:45 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.461: +1 -0 lines
Diff to previous 1.461 (colored)

avoid loop if conflict/replace end up finding kept handles.

Revision 1.461 / (download) - annotate - [select for diffs], Tue Jan 5 11:31:07 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.460: +8 -16 lines
Diff to previous 1.460 (colored)

use Auto::cache

Revision 1.460 / (download) - annotate - [select for diffs], Mon Jan 4 00:10:52 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.459: +6 -5 lines
Diff to previous 1.459 (colored)

There's no reason for -l to imply -z.

Also, fix a nasty bug: when finding installed packages in a set, don't
remove them silently, just tag them to be kept, and let tracker know about
it (fixes loop1 regress)

Revision 1.459 / (download) - annotate - [select for diffs], Sat Jan 2 16:51:51 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.458: +11 -6 lines
Diff to previous 1.458 (colored)

keep going after collisions

Revision 1.458 / (download) - annotate - [select for diffs], Sat Jan 2 12:52:18 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.457: +2 -2 lines
Diff to previous 1.457 (colored)

first step in comparing full signatures: make them full objects, with
proper sign/compare interfaces.

Revision 1.457 / (download) - annotate - [select for diffs], Fri Jan 1 13:41:49 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.456: +1 -0 lines
Diff to previous 1.456 (colored)

explicit-update support
(also url support, but commented out for now)

Revision 1.456 / (download) - annotate - [select for diffs], Fri Jan 1 11:49:55 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.455: +1 -1 lines
Diff to previous 1.455 (colored)

revert the merge flags.
In normal cases, updatedepends should no longer be needed:
pkg_add will merge updates together to make sure depdencies are
always satisfied.
e.g.,

sdlmame-tools-0.130p0->sdlmame-tools-0.132p0 forward dependencies:
| Dependency of sdlmame-0.130p1 on sdlmame-tools-0.130p0 doesn't match
Merging sdlmame-0.130p1->sdlmame-0.132p0
sdlmame-0.130p1+sdlmame-tools-0.130p0->sdlmame-0.132p0+sdlmame-tools-0.132p0: ok

Revision 1.455 / (download) - annotate - [select for diffs], Fri Jan 1 02:19:20 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.454: +24 -11 lines
Diff to previous 1.454 (colored)

be slightly smarter about forward deps: check we have updates before
merging. Otherwise, fall back to updatedepends or asking.

Revision 1.454 / (download) - annotate - [select for diffs], Thu Dec 31 13:48:52 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.453: +1 -1 lines
Diff to previous 1.453 (colored)

fix for error message logging.

Revision 1.453 / (download) - annotate - [select for diffs], Thu Dec 31 12:38:19 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.452: +12 -12 lines
Diff to previous 1.452 (colored)

add meat to the "can't install" stupid handle message

Revision 1.452 / (download) - annotate - [select for diffs], Wed Dec 30 23:45:57 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.451: +0 -7 lines
Diff to previous 1.451 (colored)

don't bother clearing the line, since we do that automatically when we
write new info. This lets messages persist a bit longer.

Revision 1.451 / (download) - annotate - [select for diffs], Wed Dec 30 09:41:44 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.450: +7 -3 lines
Diff to previous 1.450 (colored)

take merging of sets into account when creating a header.

Revision 1.450 / (download) - annotate - [select for diffs], Tue Dec 29 20:52:44 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.449: +14 -6 lines
Diff to previous 1.449 (colored)

do "not reinstalling" in a more intelligent way, by moving things into
kept, and then, just nop'ing a set with nothing to do...

Revision 1.449 / (download) - annotate - [select for diffs], Tue Dec 29 18:16:14 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.448: +26 -19 lines
Diff to previous 1.448 (colored)

a few more tweaks:
- allow for merged updates if we want them
- deplist becomes a hash, maybe useful for big sets
- simplify loop checking. We don't actually care whether we find any.
- be more aggressive in keeping cached stuff, create solver or conflict_cache
if need be.

Revision 1.448 / (download) - annotate - [select for diffs], Tue Dec 29 14:29:49 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.447: +12 -17 lines
Diff to previous 1.447 (colored)

simplify solver handling, rely on cache to avoid recomputing stuff
(large performance gain).

Revision 1.447 / (download) - annotate - [select for diffs], Tue Dec 29 14:15:53 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.446: +3 -5 lines
Diff to previous 1.446 (colored)

performance gain: cache conflicts.

Revision 1.446 / (download) - annotate - [select for diffs], Tue Dec 29 14:11:46 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.445: +49 -0 lines
Diff to previous 1.445 (colored)

prepare to cache conflicts in sets: object to do so, code to merge conflicts
and solver, actual auto-gen of conflict cache and solver.

Revision 1.445 / (download) - annotate - [select for diffs], Tue Dec 29 13:58:18 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.444: +15 -0 lines
Diff to previous 1.444 (colored)

move check for already installed UP, which allows me to deal with UpdateSet
and tracker globally to avoid loops.

Revision 1.444 / (download) - annotate - [select for diffs], Mon Dec 28 21:29:42 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.443: +1 -3 lines
Diff to previous 1.443 (colored)

use new forward dep adjust.

Revision 1.443 / (download) - annotate - [select for diffs], Mon Dec 28 19:27:58 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.442: +5 -1 lines
Diff to previous 1.442 (colored)

prepare to handle forward dependencies in a simpler way

Revision 1.442 / (download) - annotate - [select for diffs], Mon Dec 28 14:38:51 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.441: +43 -40 lines
Diff to previous 1.441 (colored)

move forward dependency checking to very late, so we can reuse the result.
uncache conflict checking, since it might need to be redone now...

Revision 1.441 / (download) - annotate - [select for diffs], Mon Dec 28 12:51:26 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.440: +60 -37 lines
Diff to previous 1.440 (colored)

move code around a bit, more functions. Especially do the exec check
ways later, when we're certain we're not going to change the set any longer,
so we don't need to go back.

Revision 1.440 / (download) - annotate - [select for diffs], Mon Dec 28 10:42:02 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.439: +1 -1 lines
Diff to previous 1.439 (colored)

nits

Revision 1.439 / (download) - annotate - [select for diffs], Sun Dec 27 22:27:03 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.438: +14 -12 lines
Diff to previous 1.438 (colored)

tweak forward dep "almost ready" code and activate loop checker.

Revision 1.438 / (download) - annotate - [select for diffs], Sun Dec 27 01:24:42 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.437: +3 -4 lines
Diff to previous 1.437 (colored)

delete partial solvers later, so I can use their deplist to check for loops.

Revision 1.437 / (download) - annotate - [select for diffs], Sat Dec 26 21:15:51 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.436: +13 -13 lines
Diff to previous 1.436 (colored)

compute forward dependencies later, so that we don't have to do it again,
and show them just once.

Revision 1.436 / (download) - annotate - [select for diffs], Sat Dec 26 17:05:43 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.435: +1 -3 lines
Diff to previous 1.435 (colored)

better

Revision 1.435 / (download) - annotate - [select for diffs], Sat Dec 26 17:00:49 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.434: +34 -30 lines
Diff to previous 1.434 (colored)

Better, more global way of dealing with forward dependencies, and to
ask just once per-set for exec/unexec.

Todo: forward-deps could be merged, but this might lead to dependency
loops, we have to detect them and act first

Todo: rewrite the other part of forward dependency handling (dep adjustment)

Revision 1.434 / (download) - annotate - [select for diffs], Mon Dec 21 17:15:46 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.433: +5 -5 lines
Diff to previous 1.433 (colored)

check new package later, after we're sure of the set.
avoid asking the user for @exec twice, as noticed by kettenis@

Revision 1.433 / (download) - annotate - [select for diffs], Mon Dec 21 11:03:00 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.432: +1 -1 lines
Diff to previous 1.432 (colored)

document recent changes, clean up old pkg_delete options

Revision 1.432 / (download) - annotate - [select for diffs], Mon Dec 21 10:38:58 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.431: +15 -36 lines
Diff to previous 1.431 (colored)

much simpler SIG{INFO} handling: create a status object in state and
update it when needed. Install a SIG{INFO} handler at start that will do
what's needed.

Revision 1.431 / (download) - annotate - [select for diffs], Sun Dec 20 22:38:45 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.430: +39 -4 lines
Diff to previous 1.430 (colored)

change verbosity handling: be silent by default, turn on the first level if -v.
Add more levels, specifically, lots of info regarding individual files only
visible if -vvvvv.
Make -n display the same stuff as normal (need -n -v to display more stuff).
Introduce -s, "size-only", turns on -n and does skip any extraction.
Sprinkle handlers for SIG_INFO, not really nice yet.

Note that -n is non functional for complex updates, because of caching
issues I have to fix.

Revision 1.430 / (download) - annotate - [select for diffs], Sat Dec 19 14:21:14 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.429: +7 -4 lines
Diff to previous 1.429 (colored)

create a $state->todo method to account for sets to install.
have tracker keep track of sets not done, and ask it directly for how many
there's still to do. Provide an offset into next for cases where we know
we already did a set but haven't accounted for it yet.
-> more accurate number of sets still to do.

Revision 1.429 / (download) - annotate - [select for diffs], Sat Dec 19 09:21:04 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.428: +0 -1 lines
Diff to previous 1.428 (colored)

bye bye old

Revision 1.428 / (download) - annotate - [select for diffs], Thu Dec 17 21:33:20 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.427: +1 -1 lines
Diff to previous 1.427 (colored)

misplaced change, found it back.

Revision 1.427 / (download) - annotate - [select for diffs], Mon Dec 14 18:11:26 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.426: +3 -13 lines
Diff to previous 1.426 (colored)

since some packages in updatesets don't need updates, be explicit about it.
This is more complex and simpler at the same time...

Revision 1.426 / (download) - annotate - [select for diffs], Mon Dec 14 09:35:56 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.425: +1 -1 lines
Diff to previous 1.425 (colored)

fuss about install msgs: new method state->ntogo, use it to annotate more
messages with global progress information.

Also, when not finding a suitable update, report it if set is not a simple
update. Helps in figuring out cases like gstreamer...

Revision 1.425 / (download) - annotate - [select for diffs], Mon Dec 14 09:13:17 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.424: +1 -1 lines
Diff to previous 1.424 (colored)

off by one the other way round

Revision 1.424 / (download) - annotate - [select for diffs], Sun Dec 13 17:58:54 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.423: +12 -0 lines
Diff to previous 1.423 (colored)

okay, so old libs are not 'kept', keep track of updates correctly instead

Revision 1.423 / (download) - annotate - [select for diffs], Sun Dec 13 17:54:15 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.422: +7 -7 lines
Diff to previous 1.422 (colored)

simplify set printing

Revision 1.422 / (download) - annotate - [select for diffs], Sat Dec 12 16:42:04 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.421: +21 -0 lines
Diff to previous 1.421 (colored)

have pkg_add recheck there are no internal conflicts in an updateset.
provides a different failure for the fam/gamin update (better one actually,
since we go further...)

Revision 1.421 / (download) - annotate - [select for diffs], Sat Dec 12 07:06:09 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.420: +10 -6 lines
Diff to previous 1.420 (colored)

do the same dance with older packages: build before list, and use it when
deleting.

Revision 1.420 / (download) - annotate - [select for diffs], Fri Dec 11 21:04:01 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.419: +50 -4 lines
Diff to previous 1.419 (colored)

record internal updateset dependencies for new packages, and respect them
while installing (need doing something similar for old packages)

Revision 1.419 / (download) - annotate - [select for diffs], Mon Dec 7 13:41:02 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.418: +10 -33 lines
Diff to previous 1.418 (colored)

simplify tracker a bit now we know what we're doing.
kill code that never got used

Revision 1.418 / (download) - annotate - [select for diffs], Sun Dec 6 07:53:07 2009 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.417: +2 -2 lines
Diff to previous 1.417 (colored)

-U before -u;

Revision 1.417 / (download) - annotate - [select for diffs], Sat Dec 5 23:13:01 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.416: +1 -1 lines
Diff to previous 1.416 (colored)

a bit more documentation, including revisit of OpenBSD::Intro to reflect
the current state of things.

Revision 1.416 / (download) - annotate - [select for diffs], Sat Dec 5 14:41:03 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.415: +4 -3 lines
Diff to previous 1.415 (colored)

use eval {} everywhere around quirks.
also, remove quirks from the list of packages to update, since it deserves
special treatment...

Revision 1.415 / (download) - annotate - [select for diffs], Sat Dec 5 11:19:43 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.414: +1 -0 lines
Diff to previous 1.414 (colored)

avoid progressmeter warning

Revision 1.414 / (download) - annotate - [select for diffs], Sat Dec 5 10:54:11 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.413: +12 -6 lines
Diff to previous 1.413 (colored)

better quirks interface: pass the search object that was built, so we can
adjust it (eventually, pass the whole list ?)

Revision 1.413 / (download) - annotate - [select for diffs], Sat Dec 5 10:10:40 2009 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.412: +14 -13 lines
Diff to previous 1.412 (colored)

fix quirks object construction. Simplify its handling: just install/update
it first, and try to build the Quirks object. Make ourselves resilient to
errors in there.

For removing sets with only older packages, we have to call complete_old
even if there are no conflicts at all !

Revision 1.412 / (download) - annotate - [select for diffs], Sat Dec 5 09:26:41 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.411: +1 -1 lines
Diff to previous 1.411 (colored)

fix off-by-one, noticed by frantisek holop

Revision 1.411 / (download) - annotate - [select for diffs], Fri Dec 4 10:52:31 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.410: +3 -2 lines
Diff to previous 1.410 (colored)

fix the case where you look to update one package: the dependencies of the
new package must first be updated too.

Revision 1.410 / (download) - annotate - [select for diffs], Fri Dec 4 10:48:14 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.409: +37 -0 lines
Diff to previous 1.409 (colored)

set-up for quirks, just don't do it yet.

Revision 1.409 / (download) - annotate - [select for diffs], Wed Dec 2 11:36:27 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.408: +3 -1 lines
Diff to previous 1.408 (colored)

fix some inter-dependencies case:
- when we merge updatesets, invalidate the solver (there isn't any, usually).
- look inside set for check_depends.
- do register_dependencies after committing all plists to cache.

Revision 1.408 / (download) - annotate - [select for diffs], Tue Dec 1 09:53:09 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.407: +4 -4 lines
Diff to previous 1.407 (colored)

okay, this one needs tagging as well

Revision 1.407 / (download) - annotate - [select for diffs], Tue Dec 1 08:13:23 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.406: +2 -0 lines
Diff to previous 1.406 (colored)

for every case we can't install stuff, we have to let the tracker now, and
close the set.

Revision 1.406 / (download) - annotate - [select for diffs], Mon Nov 30 16:15:13 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.405: +4 -5 lines
Diff to previous 1.405 (colored)

better errors: have $set->cleanup mark set as finished.
in case there is an issue, register set as not updateable with tracker.

Revision 1.405 / (download) - annotate - [select for diffs], Mon Nov 30 15:49:52 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.404: +10 -14 lines
Diff to previous 1.404 (colored)

better: have can_install return 0/1 as definitive answer, and return "undef"
for try again later.

Don't bother cleaning up set from can_install, since complete does it too.

Revision 1.404 / (download) - annotate - [select for diffs], Sun Nov 29 14:07:07 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.403: +2 -9 lines
Diff to previous 1.403 (colored)

compute updates on the fly, instead of "at start"

Revision 1.403 / (download) - annotate - [select for diffs], Sun Nov 29 13:19:29 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.402: +5 -0 lines
Diff to previous 1.402 (colored)

set things up for updates on the fly. In particular, we may have to look
into "to_update" stuff...

Revision 1.402 / (download) - annotate - [select for diffs], Sun Nov 29 11:22:25 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.401: +75 -45 lines
Diff to previous 1.401 (colored)

clean up conflict handling and dependency adjustement: build list
of conflict globally, add it as old handles, and then use it everywhere.

Revision 1.401 / (download) - annotate - [select for diffs], Sun Nov 29 07:54:18 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.400: +13 -10 lines
Diff to previous 1.400 (colored)

slightly simpler error handling

Revision 1.400 / (download) - annotate - [select for diffs], Sun Nov 29 06:51:12 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.399: +72 -47 lines
Diff to previous 1.399 (colored)

handle more general conflicts:
- match old spec against any of the new packages in the set.
- manage conflicts globally if several newer packages are there.
- remove the limit of 5 conflicting packages, it's no longer really relevant.

Revision 1.399 / (download) - annotate - [select for diffs], Sat Nov 28 17:16:59 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.398: +1 -1 lines
Diff to previous 1.398 (colored)

oops

Revision 1.398 / (download) - annotate - [select for diffs], Sat Nov 28 12:50:25 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.397: +6 -2 lines
Diff to previous 1.397 (colored)

when resolving conflicts, don't recreate handles for packages being replaced
if we already know they're being replaced.
This requires completing them with a plist.
(some cleanup of api to do later)

Revision 1.397 / (download) - annotate - [select for diffs], Sat Nov 28 10:27:07 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.396: +11 -29 lines
Diff to previous 1.396 (colored)

allow -l list more_packages

prepare for incremental updates: avoid reinstalling finished set.
don't display stuff we will install, it's mostly useless.

Revision 1.396 / (download) - annotate - [select for diffs], Tue Nov 24 11:41:56 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.395: +8 -5 lines
Diff to previous 1.395 (colored)

todo all over

Revision 1.395 / (download) - annotate - [select for diffs], Tue Nov 24 10:39:35 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.394: +12 -19 lines
Diff to previous 1.394 (colored)

do not inform user of !updated packages, they usually don't really care...

Revision 1.394 / (download) - annotate - [select for diffs], Tue Nov 24 10:32:33 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.393: +0 -4 lines
Diff to previous 1.393 (colored)

kill some old cruft, in particular -F conflicts has never worked...

Revision 1.393 / (download) - annotate - [select for diffs], Sun Nov 22 16:52:00 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.392: +1 -1 lines
Diff to previous 1.392 (colored)

no need to say we're installing, at the end...

Revision 1.392 / (download) - annotate - [select for diffs], Sun Nov 22 14:08:21 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.391: +11 -6 lines
Diff to previous 1.391 (colored)

tweak completion messages: do the next only during the next iteration, so
that at end, we can show a full completion message for the whole set.
pass the number of packages still to-do through, so that the last complete
also says (n to go) during installs...

Revision 1.391 / (download) - annotate - [select for diffs], Sun Nov 22 09:18:55 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.390: +19 -58 lines
Diff to previous 1.390 (colored)

change the timing a bit: create a list of updateset first, and process
them later.

To do that, normal additions go through hint2, and the findtruelocation
code moves to Update.pm

This will allow for more systematic handling of all names (including solving
more stuff on the fly, instead of upfront).

Revision 1.390 / (download) - annotate - [select for diffs], Tue Nov 17 10:54:27 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.389: +0 -1 lines
Diff to previous 1.389 (colored)

remove dead code

Revision 1.389 / (download) - annotate - [select for diffs], Tue Nov 17 10:17:21 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.388: +1 -3 lines
Diff to previous 1.388 (colored)

revamp interactive stuff: simplify (just one always for everything, per
theo suggestion. Also go through the "state" object which simplifies code
a great deal)

Revision 1.388 / (download) - annotate - [select for diffs], Mon Nov 16 23:02:36 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.387: +0 -1 lines
Diff to previous 1.387 (colored)

-Vstat (get it from AddDelete)

Revision 1.387 / (download) - annotate - [select for diffs], Mon Nov 16 15:01:30 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.386: +36 -40 lines
Diff to previous 1.386 (colored)

unify hints and normal updates some more

Revision 1.386 / (download) - annotate - [select for diffs], Mon Nov 16 14:47:05 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.385: +5 -2 lines
Diff to previous 1.385 (colored)

unify hint and location processing some more.

Revision 1.385 / (download) - annotate - [select for diffs], Mon Nov 16 12:53:27 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.384: +105 -116 lines
Diff to previous 1.384 (colored)

pull more common code in a "framework" routine.

Revision 1.384 / (download) - annotate - [select for diffs], Mon Nov 16 12:32:16 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.383: +0 -1 lines
Diff to previous 1.383 (colored)

identical end sequence, to be factorized

Revision 1.383 / (download) - annotate - [select for diffs], Mon Nov 16 12:20:32 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.382: +15 -76 lines
Diff to previous 1.382 (colored)

start pulling all the code that's the same between pkg_add and pkg_delete
into a common AddDelete package... lots of identical options and handling,
actually...

Revision 1.382 / (download) - annotate - [select for diffs], Sat Nov 14 10:47:16 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.381: +12 -7 lines
Diff to previous 1.381 (colored)

pull the eval {} code into an anonymous sub, so that we can choose to exec
it without the eval (useful for backtraces when I want bug-reports,
since eval {} will show you the backtrace of the eval, not of the
function call)

Revision 1.381 / (download) - annotate - [select for diffs], Thu Nov 12 14:44:00 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.380: +2 -2 lines
Diff to previous 1.380 (colored)

simpler: the whole set fails

Revision 1.380 / (download) - annotate - [select for diffs], Wed Nov 11 12:42:17 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.379: +9 -2 lines
Diff to previous 1.379 (colored)

fix setup_header in -vx !-r case: show we are adding a package, and don't
show it twice.

Revision 1.379 / (download) - annotate - [select for diffs], Wed Nov 11 12:32:03 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.378: +4 -4 lines
Diff to previous 1.378 (colored)

don't use Warn if we've got a $state, get through errprint/errsay.
Also: reset lastdisplay on clear, and don't clear twice.

Revision 1.378 / (download) - annotate - [select for diffs], Wed Nov 11 12:21:20 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.377: +3 -3 lines
Diff to previous 1.377 (colored)

also get most STDERR messages through the same way

Revision 1.377 / (download) - annotate - [select for diffs], Wed Nov 11 12:04:18 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.376: +16 -15 lines
Diff to previous 1.376 (colored)

progressmeter puts STDOUT in autoflush if -t, so that it can display to it instead of piping a lot of stuff to STDERR.

Go through state->print for most messages, so they will NOT do weird things
with the progressmeter.
Use a ->say shortcut which does the same thing that perl 5.10 say does...

Revision 1.376 / (download) - annotate - [select for diffs], Wed Nov 11 11:13:16 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.375: +3 -3 lines
Diff to previous 1.375 (colored)

remove forwarders, and provide a sensible API that says what's going on
(e.g., we're logging information for later).

Revision 1.375 / (download) - annotate - [select for diffs], Tue Nov 10 11:36:56 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.374: +1 -1 lines
Diff to previous 1.374 (colored)

bad espie: use strict/warnings consistently, and fix two nits and two
actual errors !

Revision 1.374 / (download) - annotate - [select for diffs], Mon Nov 9 17:47:59 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.373: +1 -1 lines
Diff to previous 1.373 (colored)

fix. cant_update list is again a simple list of names.

Revision 1.373 / (download) - annotate - [select for diffs], Sun Nov 8 12:16:23 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.372: +5 -6 lines
Diff to previous 1.372 (colored)

let Handle display what went wrong.
Move stuff from being a fatal error to an error that displays at end, together
with an error code.

Revision 1.372 / (download) - annotate - [select for diffs], Sun Nov 8 11:18:41 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.371: +29 -16 lines
Diff to previous 1.371 (colored)

tracker/updater methods for state that auto-create the object.

Revision 1.371 / (download) - annotate - [select for diffs], Sun Nov 8 10:46:11 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.370: +6 -13 lines
Diff to previous 1.370 (colored)

add the notion of "hints" to UpdateSet, in order to unify -z/-l handling:
create updatesets with nothing but a hint of what to install. Have
Update.pm do the dirty work.

More importantly, make Tracker aware of what's going on.

Revision 1.370 / (download) - annotate - [select for diffs], Sun Nov 8 09:39:21 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.369: +8 -5 lines
Diff to previous 1.369 (colored)

put all the state of the current update into the tracker

Revision 1.369 / (download) - annotate - [select for diffs], Wed Nov 4 16:50:02 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.368: +16 -23 lines
Diff to previous 1.368 (colored)

cleanup a bit printouts

Revision 1.368 / (download) - annotate - [select for diffs], Tue Nov 3 13:00:37 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.367: +1 -1 lines
Diff to previous 1.367 (colored)

print the correct info (need some tweaks yet to be shorter).

Revision 1.367 / (download) - annotate - [select for diffs], Tue Nov 3 10:15:18 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.366: +14 -22 lines
Diff to previous 1.366 (colored)

simplify deptree handling, since we handle this at the set level.

Revision 1.366 / (download) - annotate - [select for diffs], Tue Oct 27 11:43:31 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.365: +1 -2 lines
Diff to previous 1.365 (colored)

fix buglet: error out if pkg does not install in all cases.
noticed by Markus Lude.

Revision 1.365 / (download) - annotate - [select for diffs], Wed Oct 21 10:26:16 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.364: +6 -0 lines
Diff to previous 1.364 (colored)

catch signals when we start doing stuff... so that cleaning up at the
end always occur, unless you insist on ^C.

Revision 1.364 / (download) - annotate - [select for diffs], Wed Oct 21 10:22:58 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.363: +5 -5 lines
Diff to previous 1.363 (colored)

minor bug-fix: partial_install is not print.
remove arguments that are no longer used.

Revision 1.363 / (download) - annotate - [select for diffs], Mon Oct 19 14:20:55 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.362: +6 -4 lines
Diff to previous 1.362 (colored)

remove almost all references to set->handle, iterate over newer in most
cases (todo: rebuild dependency headers for the complex case...)

Revision 1.362 / (download) - annotate - [select for diffs], Mon Oct 19 14:15:40 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.361: +37 -27 lines
Diff to previous 1.361 (colored)

iterate over newer instead of 1 single handle

Revision 1.361 / (download) - annotate - [select for diffs], Mon Oct 19 14:07:26 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.360: +4 -0 lines
Diff to previous 1.360 (colored)

basic routines to handle the merging of updatesets: mark updatesets as
already done, separate remove/mark_installed in tracker, create a merge
method that allows the merging of updatesets.

Revision 1.360 / (download) - annotate - [select for diffs], Mon Oct 19 14:00:10 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.359: +3 -9 lines
Diff to previous 1.359 (colored)

cleanup method that does more or less what's needed

Revision 1.359 / (download) - annotate - [select for diffs], Mon Oct 19 09:29:53 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.358: +16 -16 lines
Diff to previous 1.358 (colored)

syntactic sugar: methods to access plist and location from handle.

Revision 1.358 / (download) - annotate - [select for diffs], Mon Oct 19 09:19:44 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.357: +27 -17 lines
Diff to previous 1.357 (colored)

factor common code, that's a handle specific header

Revision 1.357 / (download) - annotate - [select for diffs], Thu Oct 15 23:23:35 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.356: +12 -7 lines
Diff to previous 1.356 (colored)

fix installation header

Revision 1.356 / (download) - annotate - [select for diffs], Thu Oct 15 20:51:28 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.355: +1 -1 lines
Diff to previous 1.355 (colored)

remove parameter we no longer use

Revision 1.355 / (download) - annotate - [select for diffs], Thu Oct 15 18:32:11 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.354: +2 -21 lines
Diff to previous 1.354 (colored)

move the installed check in Tracker, where they belong

Revision 1.354 / (download) - annotate - [select for diffs], Thu Oct 15 18:17:18 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.353: +4 -0 lines
Diff to previous 1.353 (colored)

pkg_add will need to track installation progress globally, so that we don't
solve dependencies with stuff that we want to update later...
create that information, to be used...

Revision 1.353 / (download) - annotate - [select for diffs], Thu Oct 15 10:45:47 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.352: +14 -15 lines
Diff to previous 1.352 (colored)

let handle compute pkgnames correctly, simplifies code a bit

Revision 1.352 / (download) - annotate - [select for diffs], Wed Oct 14 22:59:34 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.351: +1 -87 lines
Diff to previous 1.351 (colored)

move OpenBSD::Handle into its own file. I guess I need to disentangle this
code before I go further....

Revision 1.351 / (download) - annotate - [select for diffs], Wed Oct 14 18:22:41 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.350: +1 -1 lines
Diff to previous 1.350 (colored)

fix slice that doesn't work as I thought it would...

Revision 1.350 / (download) - annotate - [select for diffs], Wed Oct 14 13:46:25 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.349: +17 -6 lines
Diff to previous 1.349 (colored)

add a few comments, finish killing kitchensink.

Revision 1.349 / (download) - annotate - [select for diffs], Wed Oct 14 11:16:15 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.348: +2 -2 lines
Diff to previous 1.348 (colored)

be a bit more specific, write the list of unsigned packages.

Revision 1.348 / (download) - annotate - [select for diffs], Wed Oct 14 11:08:16 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.347: +4 -34 lines
Diff to previous 1.347 (colored)

use choose_location

Revision 1.347 / (download) - annotate - [select for diffs], Wed Oct 14 11:06:41 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.346: +9 -0 lines
Diff to previous 1.346 (colored)

make signature checking more quiet: discard openssl's STDERR, keep a tally
of signed packages.
- display a message only if signed packages have been signed.
- show IN BIG CAPS unsigned package numbers if a mixture of signed/unsigned
has been seen.

Revision 1.346 / (download) - annotate - [select for diffs], Tue Oct 13 22:16:31 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.345: +1 -1 lines
Diff to previous 1.345 (colored)

oops, oops, oops. todo is not todo2

Revision 1.345 / (download) - annotate - [select for diffs], Tue Oct 13 21:21:07 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.344: +39 -33 lines
Diff to previous 1.344 (colored)

deal with UpdateSets earlier: build an updateset, and ask Update to complete
it.

Tweak the control for updates to move to main program. Eventually, we will
run updates on the fly (there's still some merging code and debugging to go)

Revision 1.344 / (download) - annotate - [select for diffs], Tue Oct 13 12:57:14 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.343: +40 -33 lines
Diff to previous 1.343 (colored)

factor out code as stem2location

Revision 1.343 / (download) - annotate - [select for diffs], Mon Oct 12 05:17:33 2009 UTC (14 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.342: +2 -2 lines
Diff to previous 1.342 (colored)

tweak previous;

Revision 1.342 / (download) - annotate - [select for diffs], Sun Oct 11 22:08:27 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.341: +54 -7 lines
Diff to previous 1.341 (colored)

new mode of operation: fuzzy addition. Allows adding packages even if
you don't know version numbers. Useful for quickly trying to duplicate
an installation on a new machine from the package list as obtained through
pkg_info.

Generally won't give a perfect result, but hey, if you have 300 packages
installed, will get you 95% of the way there.

prompted by problems reported by theo and msf.

Revision 1.341 / (download) - annotate - [select for diffs], Sun Oct 11 13:54:41 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.340: +70 -56 lines
Diff to previous 1.340 (colored)

get really_add to deal with lists of newer packages in updateset

Revision 1.340 / (download) - annotate - [select for diffs], Sun Oct 11 12:56:13 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.339: +61 -55 lines
Diff to previous 1.339 (colored)

prepare for full UpdateSet (loop over newer)

Revision 1.339 / (download) - annotate - [select for diffs], Sun Oct 11 11:07:55 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.338: +1 -1 lines
Diff to previous 1.338 (colored)

use older_names

Revision 1.338 / (download) - annotate - [select for diffs], Sun Oct 11 11:01:44 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.337: +2 -1 lines
Diff to previous 1.337 (colored)

overlay extract/delete/install messages, for shorter reports in normal mode

Revision 1.337 / (download) - annotate - [select for diffs], Sun Oct 11 10:49:05 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.336: +112 -112 lines
Diff to previous 1.336 (colored)

move a bit of code around, update (C)

Revision 1.336 / (download) - annotate - [select for diffs], Sun May 24 11:05:24 2009 UTC (15 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.335: +11 -5 lines
Diff to previous 1.335 (colored)

put back the ambiguous message in non-interactive mode

Revision 1.335 / (download) - annotate - [select for diffs], Mon Apr 20 08:29:02 2009 UTC (15 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.334: +1 -4 lines
Diff to previous 1.334 (colored)

restore tagged user packages to functionality (for now)

Revision 1.334 / (download) - annotate - [select for diffs], Sun Apr 19 14:58:32 2009 UTC (15 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.333: +35 -49 lines
Diff to previous 1.333 (colored)

synch with my new style search/location changes
It's likely there will be some fallout, but it's getting a bit too large
to keep around.
This does kill a few very old oddities as well.

Revision 1.333 / (download) - annotate - [select for diffs], Tue Apr 14 17:53:58 2009 UTC (15 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.332: +16 -0 lines
Diff to previous 1.332 (colored)

initial implementation of package signatures, based on x509 certificates and
smime detached signatures.

Revision 1.332 / (download) - annotate - [select for diffs], Sat Jun 21 14:01:10 2008 UTC (15 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.331: +10 -0 lines
Diff to previous 1.331 (colored)

rework collisionreport to allow some limited repair capabilities:
assuming none of the files is registered, we can assume that the
package registration fails, and then we remove the files, and install
the package.

Then we also walk installed packages to restore dependencies that would
have been erased (this is fairly simple-minded and may fail in weird
cases).

Revision 1.331 / (download) - annotate - [select for diffs], Sat Mar 8 12:07:45 2008 UTC (16 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.330: +14 -14 lines
Diff to previous 1.330 (colored)

rename forced to defines

Revision 1.330 / (download) - annotate - [select for diffs], Sat Mar 8 11:32:38 2008 UTC (16 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.329: +2 -2 lines
Diff to previous 1.329 (colored)

let GetOpt count how many times it sees an option, removes special case
for -v, and allow other fun possibilities.

Revision 1.329 / (download) - annotate - [select for diffs], Tue Dec 18 10:58:46 2007 UTC (16 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.328: +2 -2 lines
Diff to previous 1.328 (colored)

make it possible to run without locking the database. To be used by
SRC: url, which require it.

Revision 1.328 / (download) - annotate - [select for diffs], Sat Jun 30 11:38:38 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.327: +2 -2 lines
Diff to previous 1.327 (colored)

move the UpdateSet stuff into its separate file, leaving Vstat much cleaner.

Revision 1.327 / (download) - annotate - [select for diffs], Tue Jun 26 17:58:23 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.326: +2 -2 lines
Diff to previous 1.326 (colored)

missed one mark_as_installed.

Revision 1.326 / (download) - annotate - [select for diffs], Tue Jun 26 14:40:25 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.325: +31 -38 lines
Diff to previous 1.325 (colored)

the big gap one: create UpdateSet for all packages being installed, and
consider only UpdateSet internally. This involves moving stuff around a
bit to keep pkg_add -n working, adding creators from_location for UpdateSet,
and tweaking dependencies heavily.

More changes later, like sanitizing PackageLocation state engine, or
creating UpdateSet earlier for actual updates.

Revision 1.325 / (download) - annotate - [select for diffs], Sun Jun 17 10:44:01 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.324: +25 -1 lines
Diff to previous 1.324 (colored)

more scaffolding we don't really use yet.

Revision 1.324 / (download) - annotate - [select for diffs], Sat Jun 16 11:50:48 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.323: +1 -2 lines
Diff to previous 1.323 (colored)

Add variation on exec/unexec:
@exec-always         @unexec-always
@exec-add            @unexec-delete
@exec-update         @unexec-update

with the obvious semantics that *update are only run during updates,
and *add/delete are only run during `pure' additions/removals.

This should solve the problem of those packages that `lose' manual
configuration when you update them (e.g., all the mod_xxx apache stuff
and postfix).

caveat: you will need to go through one finaly broken update before the
new stuff kicks in.

Revision 1.323 / (download) - annotate - [select for diffs], Sat Jun 16 09:29:37 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.322: +3 -2 lines
Diff to previous 1.322 (colored)

use OpenBSD::Paths contents

Revision 1.322 / (download) - annotate - [select for diffs], Mon Jun 11 09:23:20 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.321: +23 -12 lines
Diff to previous 1.321 (colored)

prepare more stuff to be able to deal with UpdateSets directly

Revision 1.321 / (download) - annotate - [select for diffs], Mon Jun 11 09:12:27 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.320: +8 -19 lines
Diff to previous 1.320 (colored)

keep on extracting stuff

Revision 1.320 / (download) - annotate - [select for diffs], Sun Jun 10 16:05:49 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.319: +8 -12 lines
Diff to previous 1.319 (colored)

extract constructor to create old handles.

Revision 1.319 / (download) - annotate - [select for diffs], Sun Jun 10 15:24:36 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.318: +11 -5 lines
Diff to previous 1.318 (colored)

set_infodir when we can in PackageLocation.
Create a full handle for replaced packages as well.

Revision 1.318 / (download) - annotate - [select for diffs], Sun Jun 10 15:11:05 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.317: +11 -8 lines
Diff to previous 1.317 (colored)

make the replacement check methods slightly clearer, avoid doing two
things at once, mostly.

Revision 1.317 / (download) - annotate - [select for diffs], Sun Jun 10 14:52:29 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.316: +91 -63 lines
Diff to previous 1.316 (colored)

split create_handle code, so that we create the object as a trivial
place-holder, then complete it later. This should allow us to create
`empty shell' UpdateSets eventually, in replacement of pkgnames lists.

Revision 1.316 / (download) - annotate - [select for diffs], Sat Jun 9 13:39:31 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.315: +21 -5 lines
Diff to previous 1.315 (colored)

tag user installed packages.
- record what's on the command line.
- adjust option depending on -a / !-a
- report `manual-install' status when replacing stuff.

Revision 1.315 / (download) - annotate - [select for diffs], Sat Jun 9 11:16:54 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.314: +2 -2 lines
Diff to previous 1.314 (colored)

rework `special' package names a bit.
- do a test to create partial-foo-1.0.1 instead of partial-partial-foo-1.0
when removing partial-foo fails.
- have .libs name generation, e.g., .libs-foo, then .libs1-foo, then .libs2-foo
instead of .libs-.libs-foo.... extend the pkgspec pattern slightly, so
that all these are more or less equivalent for dependencies and conflicts.

With this, we can do practically any scenario of shared libs updates and
downgrades.

Revision 1.314 / (download) - annotate - [select for diffs], Sat Jun 9 10:30:53 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.313: +5 -20 lines
Diff to previous 1.313 (colored)

new code is much sturdier with respect to old libraries, we do not have
to consider .libs-* as `special case', saving old libraries should do
the right thing in all cases, more or less...

Revision 1.313 / (download) - annotate - [select for diffs], Thu Jun 7 20:30:03 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.312: +2 -1 lines
Diff to previous 1.312 (colored)

give handle a temporary name, this prevents `undefined' messages.

Revision 1.312 / (download) - annotate - [select for diffs], Thu Jun 7 12:57:33 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.311: +6 -3 lines
Diff to previous 1.311 (colored)

make compute_size explicit. That way, we can do it once, at the right
moment.

Revision 1.311 / (download) - annotate - [select for diffs], Tue Jun 5 23:19:00 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.310: +3 -3 lines
Diff to previous 1.310 (colored)

allow accessing all older values (make a semantic distinction), so that
adjust_dependencies gets access to all. This fixes some bogus replacements.

Revision 1.310 / (download) - annotate - [select for diffs], Mon Jun 4 14:57:33 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.309: +3 -3 lines
Diff to previous 1.309 (colored)

I am on drugs, I don't know where I found split can take strings as
arguments. Repair...

Revision 1.309 / (download) - annotate - [select for diffs], Mon Jun 4 14:40:39 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.308: +9 -9 lines
Diff to previous 1.308 (colored)

some minor systematic changes.
- mark all regexps I can with /o if they can be compiled once.
- turn $o->method() into $o->method
- remove unneeded prototypes
- reduce split /re/ into split "string" where possible.

Revision 1.308 / (download) - annotate - [select for diffs], Sat Jun 2 12:37:37 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.307: +6 -5 lines
Diff to previous 1.307 (colored)

move the check that dependencies are satisfied inside the solver object

Revision 1.307 / (download) - annotate - [select for diffs], Sat Jun 2 12:21:14 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.306: +5 -14 lines
Diff to previous 1.306 (colored)

slight refactor, move wantlib dependencies handling inside the solver.

Revision 1.306 / (download) - annotate - [select for diffs], Sat Jun 2 11:24:22 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.305: +4 -40 lines
Diff to previous 1.305 (colored)

move most of the code that deals with dependencies in the solver object

Revision 1.305 / (download) - annotate - [select for diffs], Sat Jun 2 11:18:46 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.304: +9 -9 lines
Diff to previous 1.304 (colored)

move the solver object up to the set level.

Revision 1.304 / (download) - annotate - [select for diffs], Sat Jun 2 10:29:44 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.303: +39 -22 lines
Diff to previous 1.303 (colored)

move the dependency handling into separate functions.

Revision 1.303 / (download) - annotate - [select for diffs], Fri Jun 1 22:35:46 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.302: +3 -3 lines
Diff to previous 1.302 (colored)

very small clean-up of dependencies list handling.

Revision 1.302 / (download) - annotate - [select for diffs], Fri Jun 1 21:50:46 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.301: +29 -30 lines
Diff to previous 1.301 (colored)

don't store stuff in the plist, use the handle which is there for that.
so loop directly over $set->older for replacements.

Revision 1.301 / (download) - annotate - [select for diffs], Fri Jun 1 21:37:56 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.300: +2 -2 lines
Diff to previous 1.300 (colored)

compute real list.

Revision 1.300 / (download) - annotate - [select for diffs], Fri Jun 1 14:58:29 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.299: +11 -20 lines
Diff to previous 1.299 (colored)

refactor ProgressMeter code to create objects, put these into state.
Create a common state class for delete and add, put the progressmeter
creation in there.

neat effect: we don't have a progressmeter, we use a stub class instead
and *never* pull the code in at all.

Revision 1.299 / (download) - annotate - [select for diffs], Thu May 31 16:50:43 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.298: +3 -5 lines
Diff to previous 1.298 (colored)

we cannot install a package without a solver, remove redundant test.

Revision 1.298 / (download) - annotate - [select for diffs], Thu May 31 16:48:18 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.297: +1 -6 lines
Diff to previous 1.297 (colored)

simplify the handling of shared libs: there's no need to register each
package independently.

Revision 1.297 / (download) - annotate - [select for diffs], Thu May 31 13:33:17 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.296: +4 -5 lines
Diff to previous 1.296 (colored)

move set validation earlier (in fact, it probably doesn't belong in
really_add).

move common delete_installed() code inside Delete.pm

Revision 1.296 / (download) - annotate - [select for diffs], Thu May 31 10:04:03 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.295: +5 -5 lines
Diff to previous 1.295 (colored)

fix the saving of partial installs in case destdir is used.

Revision 1.295 / (download) - annotate - [select for diffs], Wed May 30 16:32:14 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.294: +5 -15 lines
Diff to previous 1.294 (colored)

simplify script handling a bit (they're going to disappear probably anyways).

Remove two passes visitors, we don't use them.

Revision 1.294 / (download) - annotate - [select for diffs], Wed May 30 14:10:08 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.293: +7 -12 lines
Diff to previous 1.293 (colored)

fold even more stuff under the same control loop.

Revision 1.293 / (download) - annotate - [select for diffs], Wed May 30 14:04:51 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.292: +10 -63 lines
Diff to previous 1.292 (colored)

simplify really_add to use real visitors for extraction and installation.
Just do one single try {} catchall {} per-method, as this is enough.

New methods: extract_and_progress, install_and_progress, that catch
interrupts (die) deal with fake, and handle the progress meter.
One single method: mark_progress, can be used for extraction, installation
and deletion.

Revision 1.292 / (download) - annotate - [select for diffs], Wed May 30 12:52:06 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.291: +10 -8 lines
Diff to previous 1.291 (colored)

simplify the way partial installations get recorded: store elements
already installed in a hash, and do a shallow copy of the list when
necessary, using make_copy.

This removes a lot of action-at-a-distance in packing-list elements.

Revision 1.291 / (download) - annotate - [select for diffs], Wed May 30 11:40:07 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.290: +37 -15 lines
Diff to previous 1.290 (colored)

slightly better control over partial installations (still preparing for
bigger sets)

Revision 1.290 / (download) - annotate - [select for diffs], Tue May 29 14:52:48 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.289: +11 -12 lines
Diff to previous 1.289 (colored)

move code a bit, in preparation for multiple handles in an UpdateSet.

Revision 1.289 / (download) - annotate - [select for diffs], Tue May 29 14:39:03 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.288: +4 -10 lines
Diff to previous 1.288 (colored)

rely on packing-lists knowing where they live, much saner.

Revision 1.288 / (download) - annotate - [select for diffs], Tue May 29 13:52:07 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.287: +2 -3 lines
Diff to previous 1.287 (colored)

don't bypass add_object to create special files, otherwise infodir won't
get defined.

Simplify and clean-up register_installation: everything is in the packing-list
so don't pass other arguments. Do not copy arbitrary info_names objects, but
use a copy_info visitor which copies exactly what files are around.

Use the stored infodir to locate DISPLAY and INSTALL files.

Revision 1.287 / (download) - annotate - [select for diffs], Tue May 29 13:15:23 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.286: +2 -1 lines
Diff to previous 1.286 (colored)

set_infodir during pkg_add.

Revision 1.286 / (download) - annotate - [select for diffs], Mon May 28 13:55:34 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.285: +11 -12 lines
Diff to previous 1.285 (colored)

move `interrupted' stuff inside state: removes one local variable, allows
me to cut up big function into smaller ones.

Revision 1.285 / (download) - annotate - [select for diffs], Mon May 28 12:44:41 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.284: +3 -3 lines
Diff to previous 1.284 (colored)

store skipupdatedeps in the set, not the plist

Revision 1.284 / (download) - annotate - [select for diffs], Mon May 28 11:29:09 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.283: +25 -18 lines
Diff to previous 1.283 (colored)

split off handle creation (for added packages) into its own routine.

Revision 1.283 / (download) - annotate - [select for diffs], Mon May 28 11:15:10 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.282: +4 -4 lines
Diff to previous 1.282 (colored)

clean up packing-list validation, call the methods `prepare_for_addition'
and `prepare_for_deletion', that's clearer...

Revision 1.282 / (download) - annotate - [select for diffs], Sun May 27 22:34:24 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.281: +2 -2 lines
Diff to previous 1.281 (colored)

oops, save_old_libs is now set dependent, we no longer store old packages
in the same location.

Revision 1.281 / (download) - annotate - [select for diffs], Sun May 27 22:18:14 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.280: +25 -19 lines
Diff to previous 1.280 (colored)

move computation of header to a separate function.
slightly more precise comment

Revision 1.280 / (download) - annotate - [select for diffs], Sun May 27 22:04:17 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.279: +6 -15 lines
Diff to previous 1.279 (colored)

move packing-list validation to the UpdateSet level.

Revision 1.279 / (download) - annotate - [select for diffs], Sun May 27 21:43:06 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.278: +4 -4 lines
Diff to previous 1.278 (colored)

comment out some of this code. Currently, we don't know how to recover
from collision with old libs (and the result from figure_out_old_libs says
so), so don't pretend we're doing anything significant with them...

Revision 1.278 / (download) - annotate - [select for diffs], Sun May 27 21:33:55 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.277: +6 -1 lines
Diff to previous 1.277 (colored)

group packing-list validation for replaced packages with added one.

Revision 1.277 / (download) - annotate - [select for diffs], Sun May 27 11:36:21 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.276: +4 -5 lines
Diff to previous 1.276 (colored)

rename $state->{replace} to $state->{allow_replacing}, which matches intent
better...

Revision 1.276 / (download) - annotate - [select for diffs], Sun May 27 11:31:35 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.275: +2 -2 lines
Diff to previous 1.275 (colored)

errors can now be a local variable

Revision 1.275 / (download) - annotate - [select for diffs], Sun May 27 11:21:55 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.274: +28 -36 lines
Diff to previous 1.274 (colored)

Simplify the mess that deals with alaready installed packages.
We can now have one central point that deals with it.

Revision 1.274 / (download) - annotate - [select for diffs], Sun May 27 11:02:03 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.273: +28 -14 lines
Diff to previous 1.273 (colored)

store replaced packages inside the UpdateSet directly.

Revision 1.273 / (download) - annotate - [select for diffs], Sun May 27 10:38:12 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.272: +16 -13 lines
Diff to previous 1.272 (colored)

depend more stuff off handle.
Introduce UpdateSet, finally, with a main handle.

Revision 1.272 / (download) - annotate - [select for diffs], Sun May 27 09:59:41 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.271: +9 -8 lines
Diff to previous 1.271 (colored)

finish converting most things in pkg_add to the `handle' form, so
we no longer stash anything inside locations.

Revision 1.271 / (download) - annotate - [select for diffs], Sun May 27 09:48:05 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.270: +10 -10 lines
Diff to previous 1.270 (colored)

move the dependency solver up to the handle

Revision 1.270 / (download) - annotate - [select for diffs], Sat May 26 23:55:53 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.269: +22 -20 lines
Diff to previous 1.269 (colored)

pass more handle through

Revision 1.269 / (download) - annotate - [select for diffs], Sat May 26 23:45:44 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.268: +18 -30 lines
Diff to previous 1.268 (colored)

simplify error logic a bit more, always let prepare_to_add return a
handle.

Also kill very old @exec tests.

Revision 1.268 / (download) - annotate - [select for diffs], Sat May 26 12:25:29 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.267: +2 -17 lines
Diff to previous 1.267 (colored)

oops, fix: pass handle instead of location to can_install.

Ditch the modifications of global $errors.

Revision 1.267 / (download) - annotate - [select for diffs], Sat May 26 12:22:38 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.266: +14 -5 lines
Diff to previous 1.266 (colored)

base tests on $handle->has_error instead of $errors.

Revision 1.266 / (download) - annotate - [select for diffs], Sat May 26 12:15:45 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.265: +5 -4 lines
Diff to previous 1.265 (colored)

give a more descriptive name to function, we're past abreviations

Revision 1.265 / (download) - annotate - [select for diffs], Fri May 25 13:25:50 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.264: +8 -2 lines
Diff to previous 1.264 (colored)

Pass the handle to can_install, so that it can fill in errors (the package
location is actually not used by this routine).

Revision 1.264 / (download) - annotate - [select for diffs], Fri May 25 13:18:56 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.263: +12 -4 lines
Diff to previous 1.263 (colored)

start cleaning up the mess that is error-handling when installing packages.
Mid-Term, we want to manipulate true `handles' that encapsulate package
locations.

For now, we create this handle externally, and just use it to record
errors, in duplicate...

Once handles are ready, they should be agregated into UpdateSets, to make
replacement of packages more explicit and flexible.

Revision 1.263 / (download) - annotate - [select for diffs], Fri May 25 10:08:12 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.262: +23 -23 lines
Diff to previous 1.262 (colored)

also rename this one for further wrapping

Revision 1.262 / (download) - annotate - [select for diffs], Fri May 25 09:50:31 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.261: +13 -13 lines
Diff to previous 1.261 (colored)

rename `handle' to `location' in preparation for wrapping it in a
proper `handle'.

Revision 1.261 / (download) - annotate - [select for diffs], Wed May 23 10:33:45 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.260: +15 -11 lines
Diff to previous 1.260 (colored)

fiddle with SharedLibs name, put common code into a common place in
pkg_add.

Revision 1.260 / (download) - annotate - [select for diffs], Tue May 22 10:47:40 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.259: +2 -3 lines
Diff to previous 1.259 (colored)

cleanup shared state a bit earlier. Shouldn't change much, but may help
ensuring we don't reload fontdirs twice with weird fontdirs case.

Revision 1.259 / (download) - annotate - [select for diffs], Tue May 22 10:11:58 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.258: +4 -7 lines
Diff to previous 1.258 (colored)

introduce a SharedItemsRecorder (put it into Vstat, since that's a file
common to Add and Delete, for now).

Use it to have common code that records items to remove / items remaining.

Stash it into pkg_add/pkg_delete state, and abstract the cleaning up
operation into the SharedItemsRecorder (so that pkg_add and pkg_delete no
longer have to know about the internals of SharedItems at all).

Revision 1.258 / (download) - annotate - [select for diffs], Sun May 20 14:40:50 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.257: +54 -36 lines
Diff to previous 1.257 (colored)

move deptree and installed into state object

Revision 1.257 / (download) - annotate - [select for diffs], Sun May 20 14:21:33 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.256: +5 -2 lines
Diff to previous 1.256 (colored)

create specific `state' objects for pkg_add and pkg_delete, so that I can
write shortcuts for common behavior, and start hiding some details.

Revision 1.256 / (download) - annotate - [select for diffs], Sun May 20 14:04:39 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.255: +2 -1 lines
Diff to previous 1.255 (colored)

placeholders for UpdateSet, once we have it.

Revision 1.255 / (download) - annotate - [select for diffs], Sun May 20 11:06:44 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.254: +4 -2 lines
Diff to previous 1.254 (colored)

compute list of dependencies to adjust just-in-time.
This lets the pkg_add regress pass, finally.

Revision 1.254 / (download) - annotate - [select for diffs], Sat May 19 23:40:46 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.253: +2 -9 lines
Diff to previous 1.253 (colored)

move the code that handles dependencies registration into Dependencies

Revision 1.253 / (download) - annotate - [select for diffs], Fri May 18 09:45:18 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.252: +4 -12 lines
Diff to previous 1.252 (colored)

we don't need to walk the full dependency tree each time we don't find
a library. Instead, put the state of the closure computation in the solver
object, and only proceed until we find the library. We just need an extra
marker (known) to be aware of packages that may contain libraries, but have
not been used for extra dependencies yet.

Revision 1.252 / (download) - annotate - [select for diffs], Thu May 17 15:40:06 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.251: +2 -4 lines
Diff to previous 1.251 (colored)

library lookup becomes a real method

Revision 1.251 / (download) - annotate - [select for diffs], Thu May 17 15:35:58 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.250: +2 -2 lines
Diff to previous 1.250 (colored)

move the library lookup code into Solver, so that I can turn it into
methods as well...

Revision 1.250 / (download) - annotate - [select for diffs], Thu May 17 14:13:40 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.249: +6 -6 lines
Diff to previous 1.249 (colored)

use solver object in all direct instances of solved_dependencies.

Revision 1.249 / (download) - annotate - [select for diffs], Thu May 17 14:08:49 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.248: +2 -1 lines
Diff to previous 1.248 (colored)

access solver internals in a clean way through dependencies, uses it
internally.
store solver objects along with solved_dependencies.
Eventually, all solved_dependencies requests will use solver objects
instead.

Revision 1.248 / (download) - annotate - [select for diffs], Thu May 17 13:36:21 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.247: +4 -3 lines
Diff to previous 1.247 (colored)

tweak the solver object a bit, now that I have a clearer idea of what
it's going to be used for.

Revision 1.247 / (download) - annotate - [select for diffs], Mon May 14 18:19:25 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.246: +2 -2 lines
Diff to previous 1.246 (colored)

put the solver into its  own class.

Revision 1.246 / (download) - annotate - [select for diffs], Mon May 14 17:52:08 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.245: +4 -1 lines
Diff to previous 1.245 (colored)

move verbose printing into a separate method.

Revision 1.245 / (download) - annotate - [select for diffs], Mon May 14 11:22:00 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.244: +2 -2 lines
Diff to previous 1.244 (colored)

redo search filters as real objects. Accordingly, rename match_list to
filter.

Revision 1.244 / (download) - annotate - [select for diffs], Mon May 14 11:02:14 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.243: +2 -2 lines
Diff to previous 1.243 (colored)

put Search objects into their own file, finally

Revision 1.243 / (download) - annotate - [select for diffs], Mon May 14 10:53:31 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.242: +3 -3 lines
Diff to previous 1.242 (colored)

put search objects into a search class.

Revision 1.242 / (download) - annotate - [select for diffs], Mon May 14 10:43:45 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.241: +2 -2 lines
Diff to previous 1.241 (colored)

name tweaks: match -> match_list, match_repo -> match

Revision 1.241 / (download) - annotate - [select for diffs], Mon May 14 09:49:27 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.240: +2 -2 lines
Diff to previous 1.240 (colored)

tidy

Revision 1.240 / (download) - annotate - [select for diffs], Sun May 13 13:32:36 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.239: +2 -2 lines
Diff to previous 1.239 (colored)

unify object lookup as locator->match($o) or $repo->match($o)

Revision 1.239 / (download) - annotate - [select for diffs], Sun May 13 10:43:33 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.238: +6 -2 lines
Diff to previous 1.238 (colored)

turn the updater into an object

Revision 1.238 / (download) - annotate - [select for diffs], Sat May 12 14:48:45 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.237: +2 -3 lines
Diff to previous 1.237 (colored)

use PkgSpec objects most of the time

Revision 1.237 / (download) - annotate - [select for diffs], Mon May 7 14:21:39 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.236: +2 -2 lines
Diff to previous 1.236 (colored)

lift up findstem to the PackageRepository

Revision 1.236 / (download) - annotate - [select for diffs], Mon May 7 14:12:43 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.235: +2 -7 lines
Diff to previous 1.235 (colored)

remove dependency on available_stems(), make it go thru PackageLocator

Revision 1.235 / (download) - annotate - [select for diffs], Mon May 7 13:51:58 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.234: +2 -2 lines
Diff to previous 1.234 (colored)

make keep_most_recent explicit, do not try to pre-compute it at the stemlist
level.

Revision 1.234 / (download) - annotate - [select for diffs], Mon May 7 12:19:04 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.233: +3 -2 lines
Diff to previous 1.233 (colored)

refactor: create a solver object to handle state issues in a simpler way.

Revision 1.233 / (download) - annotate - [select for diffs], Mon May 7 08:10:45 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.232: +2 -2 lines
Diff to previous 1.232 (colored)

zap unused parameters.

Revision 1.232 / (download) - annotate - [select for diffs], Mon May 7 08:05:23 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.231: +1 -12 lines
Diff to previous 1.231 (colored)

finish removing old libdepends checks.

Revision 1.231 / (download) - annotate - [select for diffs], Thu May 3 14:47:29 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.230: +1 -12 lines
Diff to previous 1.230 (colored)

remove future code to handle modules, that is unused and possibly badly
designed as well.

Revision 1.230 / (download) - annotate - [select for diffs], Wed May 2 15:17:36 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.229: +4 -4 lines
Diff to previous 1.229 (colored)

replace pkgbase with less confusing name localbase

Revision 1.229 / (download) - annotate - [select for diffs], Wed May 2 13:59:19 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.228: +47 -47 lines
Diff to previous 1.228 (colored)

remove extraneous () in method call: $o->method() becomes $o->method

Revision 1.228 / (download) - annotate - [select for diffs], Tue May 1 18:22:20 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.227: +1 -2 lines
Diff to previous 1.227 (colored)

move the old elements into PackingElements, since the code is now
much shorter.

Revision 1.227 / (download) - annotate - [select for diffs], Sat Apr 21 09:57:22 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.226: +8 -3 lines
Diff to previous 1.226 (colored)

if running a full update, proceed if we can't find some packages.

Revision 1.226 / (download) - annotate - [select for diffs], Sun Apr 15 10:17:29 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.225: +2 -2 lines
Diff to previous 1.225 (colored)

update copyright years, standardize licence.
reword the introduction to the stuff originally from FreeBSD to clarify
slightly.

Revision 1.225 / (download) - annotate - [select for diffs], Tue Mar 27 22:41:07 2007 UTC (17 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.224: +1 -4 lines
Diff to previous 1.224 (colored)

finally remove old warning, @lib has been around (and used) since 3.7.

Revision 1.224 / (download) - annotate - [select for diffs], Wed Mar 7 11:24:07 2007 UTC (17 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.223: +2 -1 lines
Diff to previous 1.223 (colored)

fix size checks for good. Since we want deletion to happen `right now'
but size accounting to happen later, just mark the size to delete `for
later', do not take them into account for avail(), and synchronize() at
the right time, e.g., after addition when updating, and right away for
straight deletion.

okay deraadt@

Revision 1.223 / (download) - annotate - [select for diffs], Wed Mar 7 00:09:46 2007 UTC (17 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.222: +1 -3 lines
Diff to previous 1.222 (colored)

revert size check tweak, the fix does break other stuff. this is harder
than I thought...

Revision 1.222 / (download) - annotate - [select for diffs], Tue Mar 6 23:35:01 2007 UTC (17 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.221: +17 -4 lines
Diff to previous 1.221 (colored)

get vfs size snapshotted and restored so that pkg_add -u has a harder
time overflowing the disk.

let stem work at the end of urls.

test sturm@ and bernd@,

okay deraadt@

Revision 1.221 / (download) - annotate - [select for diffs], Sun Feb 4 12:46:54 2007 UTC (17 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.220: +7 -2 lines
Diff to previous 1.220 (colored)

protect `normal' installs against archive burps.

Revision 1.220 / (download) - annotate - [select for diffs], Fri Nov 17 15:34:15 2006 UTC (17 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.219: +15 -15 lines
Diff to previous 1.219 (colored)

don't return undef, use plain return.
(return undef is only false in a scalar context)
found my perlcritic, one of the few issues I agree with...

Revision 1.219 / (download) - annotate - [select for diffs], Tue Oct 17 21:47:22 2006 UTC (17 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.218: +5 -1 lines
Diff to previous 1.218 (colored)

add -F conflicts: force installation in the presence of registered conflicts,
provided nothing else happens (like, huh, the presence of actual conflicts
between files).

Allows nikolay@ to work with redhat/base and fedora_core at the same time.

Revision 1.218 / (download) - annotate - [select for diffs], Fri Aug 25 08:42:38 2006 UTC (17 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.217: +2 -1 lines
Diff to previous 1.217 (colored)

add PackingOld when replacing, helps people with really old installs...

Revision 1.217 / (download) - annotate - [select for diffs], Sat Mar 4 11:31:18 2006 UTC (18 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.216: +49 -177 lines
Diff to previous 1.216 (colored)

reorganize code a little bit: Update.pm becomes Replace.pm (since it matches
the -r option), and the find_update code moves to Update.pm, so that it doesn't
get parsed if -u is not used.

Also make the has_new_sig and uses_old_libs local methods of PackingList,
as it is their natural API.

Reorg a few more routines so that they can be found by pkg_add and by
Update.pm.

May need to split off more stuff to avoid parsing everything...

Revision 1.216 / (download) - annotate - [select for diffs], Fri Feb 10 11:42:51 2006 UTC (18 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.215: +2 -1 lines
Diff to previous 1.215 (colored)

reset $state->{dir} to the correct value after deleting the replaced package.
Fixes a problem noticed by steven.

Revision 1.215 / (download) - annotate - [select for diffs], Fri Feb 10 10:08:16 2006 UTC (18 years, 3 months ago) by bernd
Branch: MAIN
Changes since 1.214: +19 -4 lines
Diff to previous 1.214 (colored)

Use the ProgressMeter engine to display the update messages. This makes
'pkg_add -u' less chatty. (turn on verbose output to restore the old behaviour)

Advise the user to re-run 'pkg_add -u' in interactive mode if there are
ambiguities.

Discussed with steven@ and espie@.

Testing and some ideas by steven@, thanks.

ok espie@

Revision 1.214 / (download) - annotate - [select for diffs], Thu Feb 9 09:40:31 2006 UTC (18 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.213: +10 -10 lines
Diff to previous 1.213 (colored)

use new interface (*close*)
optimization: store dir into state earlier, so that do_script and
other stuff can have access to it.

Revision 1.213 / (download) - annotate - [select for diffs], Tue Feb 7 10:34:56 2006 UTC (18 years, 3 months ago) by bernd
Branch: MAIN
Changes since 1.212: +5 -3 lines
Diff to previous 1.212 (colored)

Don't push undef into the todo list. This avoids some perl warnings.

ok espie@

Revision 1.212 / (download) - annotate - [select for diffs], Tue Jan 17 20:46:52 2006 UTC (18 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.211: +20 -8 lines
Diff to previous 1.211 (colored)

special-case packages that use old-libs: always update them, even if the
signature didn't change.

Revision 1.211 / (download) - annotate - [select for diffs], Thu Nov 3 11:50:32 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.210: +11 -3 lines
Diff to previous 1.210 (colored)

exit with 1 if we can't install shit thanks to dependencies issues.
found out by sturm@

Revision 1.210 / (download) - annotate - [select for diffs], Mon Oct 24 08:55:59 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.209: +3 -2 lines
Diff to previous 1.209 (colored)

filter out .libs-* later, so that compute_closures() packages do not
get involved.

Revision 1.209 / (download) - annotate - [select for diffs], Mon Oct 24 07:16:35 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.208: +2 -2 lines
Diff to previous 1.208 (colored)

do not try to find a match for .libs-* packages.

Revision 1.208 / (download) - annotate - [select for diffs], Sat Oct 22 17:44:07 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored)

add a hint to close that says how the fd got closed (real error, premature,
normal).

This will get used by parse_problems() to figure out what to report exactly,
e.g., short writes from prematurely closed fd are not real errors...
stuff that can't connect IPv6 and retries as v4 is not either, unless
there's a genuine `can't connect error'.

Revision 1.207 / (download) - annotate - [select for diffs], Sat Oct 22 15:01:54 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.206: +3 -2 lines
Diff to previous 1.206 (colored)

always display the list of packages we can't update.

Revision 1.206 / (download) - annotate - [select for diffs], Mon Oct 10 11:06:04 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.205: +9 -6 lines
Diff to previous 1.205 (colored)

several paths lead to has_new_sig, cache the result.

Revision 1.205 / (download) - annotate - [select for diffs], Mon Oct 10 11:02:19 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.204: +2 -1 lines
Diff to previous 1.204 (colored)

We should do this, placeholder.

Revision 1.204 / (download) - annotate - [select for diffs], Mon Oct 10 09:33:56 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.203: +4 -1 lines
Diff to previous 1.203 (colored)

Display an error message if no packages are available in the PKG_PATH.
Quote nlist command, if we invoke it accidentally in a directory with *.tgz
present.

Revision 1.203 / (download) - annotate - [select for diffs], Mon Sep 19 10:19:45 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.202: +8 -12 lines
Diff to previous 1.202 (colored)

use $handle->plist()

Revision 1.202 / (download) - annotate - [select for diffs], Wed Sep 14 10:16:08 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.201: +2 -2 lines
Diff to previous 1.201 (colored)

typo, let @pkgpath work.

Revision 1.201 / (download) - annotate - [select for diffs], Tue Sep 13 20:57:14 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.200: +3 -4 lines
Diff to previous 1.200 (colored)

use wipe_info() instead of hand-killing directories.

Revision 1.200 / (download) - annotate - [select for diffs], Wed Sep 7 09:11:22 2005 UTC (18 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.199: +3 -3 lines
Diff to previous 1.199 (colored)

sort options, and sync usage();

Revision 1.199 / (download) - annotate - [select for diffs], Mon Sep 5 11:41:03 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.198: +3 -2 lines
Diff to previous 1.198 (colored)

Missing -F installed test.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Sep 4 22:53:51 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.197: +3 -3 lines
Diff to previous 1.197 (colored)

zap duplicate code

Revision 1.197 / (download) - annotate - [select for diffs], Sun Sep 4 22:47:56 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.196: +152 -49 lines
Diff to previous 1.196 (colored)

* New -i interactive option, that can ask obnoxious questions.
* move the signature code to a packing-list method, prepend the pkgname.
* depend on distant listings, cache these systematically.
* cut the PKG_PATH at :/ systematically, much simpler than parsing URLs.
People should get used to trailing /s.
* let pkg_add -u actually run the update.
* check for signature in more places, for instance, let pkg_add installed_stuff
be a void operation.
* grab enough stuff during updates to check signatures, so that pkg_add -u
can report updates that are not needed right away, instead of waiting
for the more confusing `trying to update'
* beginning of @module support.
* @pkgpath support, including updates.
* systematically expand stems when applicable.
* use visitors systematically in pkg_info.
* pkg_info -S reports signature.
* remove hardcoding of categories in PackingList, so that future modules
will be able to expand them.
* add @updateset and @incompatibility keywords.

Revision 1.196 / (download) - annotate - [select for diffs], Mon Aug 29 00:42:58 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.195: +2 -27 lines
Diff to previous 1.195 (colored)

correctly trim old p* versions of packages.

tests sturm@, aanriot@

okay deraadt@

Revision 1.195 / (download) - annotate - [select for diffs], Mon Aug 22 12:18:06 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.194: +27 -12 lines
Diff to previous 1.194 (colored)

Protect against more signals. Mark them as caught in a unified message.
During exit, just rethrow the signals, so that a wrapping process
can know what's going on.

Revision 1.194 / (download) - annotate - [select for diffs], Mon Aug 22 11:37:23 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.193: +3 -2 lines
Diff to previous 1.193 (colored)

protect against $pkgname not being defined.

Revision 1.193 / (download) - annotate - [select for diffs], Wed Aug 17 18:48:10 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.192: +4 -2 lines
Diff to previous 1.192 (colored)

better message when we can't resolve a stem, taken from pkg_delete.

Revision 1.192 / (download) - annotate - [select for diffs], Wed Aug 17 18:24:52 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.191: +4 -24 lines
Diff to previous 1.191 (colored)

clean-up, move the compute_closure code to RequiredBy, since it's
quite generic.

Revision 1.191 / (download) - annotate - [select for diffs], Wed Aug 17 11:01:07 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.190: +33 -1 lines
Diff to previous 1.190 (colored)

when looking for updates, select the best version: we know what to do
with p suffixes in a safe way.

Revision 1.190 / (download) - annotate - [select for diffs], Wed Aug 17 10:45:13 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.189: +4 -1 lines
Diff to previous 1.189 (colored)

if we can't read the packing-list, it's because it's a bad pkgname.
reported by niklas@

Revision 1.189 / (download) - annotate - [select for diffs], Wed Aug 17 10:00:18 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.188: +6 -1 lines
Diff to previous 1.188 (colored)

save architecture as well for ExtraInfo, so that pkg_add -u won't try
to add packages for the wrong architecture.

Noticed by Tim Kornau.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Aug 17 09:24:53 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.187: +5 -5 lines
Diff to previous 1.187 (colored)

restore $main::not that is needed by OpenBSD::RequiredBy,
put an # XXX comment so I won't be tempted to clean it again.

Revision 1.187 / (download) - annotate - [select for diffs], Tue Aug 16 21:48:34 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.186: +18 -1 lines
Diff to previous 1.186 (colored)

big kludge that allows updating mozilla-thunderbird from 3.7 -> current.

okay pvalchev@

Revision 1.186 / (download) - annotate - [select for diffs], Tue Aug 16 20:05:12 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.185: +3 -1 lines
Diff to previous 1.185 (colored)

make sure libs get registered if we take a shortcut and don't reinstall
the package, or if we call add_bogus_libs directly.

Revision 1.185 / (download) - annotate - [select for diffs], Tue Aug 16 16:24:23 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.184: +6 -3 lines
Diff to previous 1.184 (colored)

in case we're pretending to install, there's no borked package to create.

Revision 1.184 / (download) - annotate - [select for diffs], Tue Aug 16 16:15:28 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.183: +7 -1 lines
Diff to previous 1.183 (colored)

put a signature check way earlier, so that user doesn't get confused
seeing update messages for stuff that won't happen anyways.

Revision 1.183 / (download) - annotate - [select for diffs], Tue Aug 16 13:52:15 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.182: +18 -7 lines
Diff to previous 1.182 (colored)

In some cases, pkg_add -r will remove some extra packages while performing
replacement on dependencies.

When we finally reach the package that triggered the dependencies, the
package it's supposed to replace is no longer there, so do a quick
sanity check to only replace packages that have not already been replaced...

Revision 1.182 / (download) - annotate - [select for diffs], Tue Aug 16 12:05:58 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.181: +37 -7 lines
Diff to previous 1.181 (colored)

when you ask to update a package, you generally want to update its
dependencies as well...

so do the stem -> pkgname conversion early, and then compute the
closure of dependencies on the list of packages we asked for.

Revision 1.181 / (download) - annotate - [select for diffs], Tue Aug 16 11:25:48 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.180: +7 -7 lines
Diff to previous 1.180 (colored)

use a hash for compiled stems, to avoid spurious duplicates.
adjust find_updatenames accordingly.

Revision 1.180 / (download) - annotate - [select for diffs], Tue Aug 16 10:28:53 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.179: +73 -8 lines
Diff to previous 1.179 (colored)

add code that figures out the new package names after an update.
This is done very carefully, so that pkg_add -u only displays the
names to use, and so that it does not interfere with existing code.
-F pkgpath recommended for speed.

Revision 1.179 / (download) - annotate - [select for diffs], Sun Aug 14 09:06:53 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.178: +1 -2 lines
Diff to previous 1.178 (colored)

zap extra line

Revision 1.178 / (download) - annotate - [select for diffs], Sun Aug 14 09:03:37 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.177: +26 -9 lines
Diff to previous 1.177 (colored)

fix error recovery in replacing case.
- build the list of done items during extract only, since later all files
have a tempname.
- wrap pre-install in an exception handler, since there already is stuff to
save in a partial package...

Revision 1.177 / (download) - annotate - [select for diffs], Sun Aug 7 16:25:35 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.176: +5 -188 lines
Diff to previous 1.176 (colored)

split off the code that handles dependencies proper, so that we can (later)
reuse it in pkg_info or lib-depends-check.

Revision 1.176 / (download) - annotate - [select for diffs], Sun Jul 24 11:50:03 2005 UTC (18 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.175: +7 -9 lines
Diff to previous 1.175 (colored)

postpone decision whether to replace already installed packages in -r mode,
so that we get to execute is_needed and actually comparing full signatures.

Revision 1.175 / (download) - annotate - [select for diffs], Wed Jun 29 22:54:31 2005 UTC (18 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.174: +5 -2 lines
Diff to previous 1.174 (colored)

stop if no pkgname.
from deraadt@.

also lock_db later, since we can.

Revision 1.174 / (download) - annotate - [select for diffs], Sun Jun 26 11:25:11 2005 UTC (18 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.173: +2 -2 lines
Diff to previous 1.173 (colored)

handle fat packages based on architecture.

Revision 1.173 / (download) - annotate - [select for diffs], Wed Mar 9 11:53:57 2005 UTC (19 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.172: +3 -3 lines
Diff to previous 1.172 (colored)

just clue() the first time a library is not found.
More clues are generally useless...

Revision 1.172 / (download) - annotate - [select for diffs], Wed Mar 9 11:46:07 2005 UTC (19 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.171: +8 -5 lines
Diff to previous 1.171 (colored)

report all missing libraries (report is a bit verbose, but this will do).

Revision 1.171 / (download) - annotate - [select for diffs], Wed Mar 9 11:30:59 2005 UTC (19 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.170: +7 -7 lines
Diff to previous 1.170 (colored)

oops, since we don't register destdir along with libs, looking up with
destdir is doomed.

Revision 1.170 / (download) - annotate - [select for diffs], Wed Mar 9 11:22:27 2005 UTC (19 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.169: +2 -1 lines
Diff to previous 1.169 (colored)

make sure lookup_libspec returns the same thing in -v -v mode.

Revision 1.169 / (download) - annotate - [select for diffs], Mon Feb 7 15:35:23 2005 UTC (19 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.168: +9 -1 lines
Diff to previous 1.168 (colored)

make updatedepends slightly safer: note which packages may have bogus
dependencies, so that if you do one big pkg_add -r *, then you can check
which packages may have issues thanks to forced updates.

Revision 1.168 / (download) - annotate - [select for diffs], Sat Jan 22 13:00:35 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.167: +2 -2 lines
Diff to previous 1.167 (colored)

do not clean-up shared items in pretend mode (for now, need extra logic
to pretend cleaning it up).

Revision 1.167 / (download) - annotate - [select for diffs], Fri Jan 14 02:25:12 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.166: +5 -1 lines
Diff to previous 1.166 (colored)

`big lock' model: lock the whole db for reading/writing.
design checked with millert@, relying on process termination for unlock
at his suggestion.

Perf optimization: don't try to reinstall installed packages in kitchensink
mode if !-r.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Jan 13 00:29:37 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.165: +8 -1 lines
Diff to previous 1.165 (colored)

just mark it down when we can't install a package, instead of trying
later, so that we can erase some temp info.

Saves memory and time for -F kitchensink, mostly nop otherwise...

Revision 1.165 / (download) - annotate - [select for diffs], Mon Jan 3 01:02:45 2005 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.164: +9 -3 lines
Diff to previous 1.164 (colored)

rename -f -> -F
okay pvalchev@, naddy@, marco@, deraadt@

(keep -f around for the transition, will scrap it soon)

Revision 1.164 / (download) - annotate - [select for diffs], Tue Dec 28 14:50:38 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.163: +22 -1 lines
Diff to previous 1.163 (colored)

add a boguslibs forced option, that rescans packages for libraries
not marked with @lib.

This allows pkg_add -current to deal with 3.6 packages fully.

Revision 1.163 / (download) - annotate - [select for diffs], Tue Dec 28 13:54:13 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.162: +3 -2 lines
Diff to previous 1.162 (colored)

synchronize conflict lists when we add/remove anything.

Revision 1.162 / (download) - annotate - [select for diffs], Mon Dec 27 23:56:48 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.161: +7 -2 lines
Diff to previous 1.161 (colored)

allow pkg_add -r to proceed even if there's more than one conflict.
Put an arbitrary threshold at 5 conflicts, so that a package that
conflicts with everything won't wipe everything out...

Take inter-dependencies into account while adjusting dependencies:
we can't adjust dependencies for stuff that is no longer there.

Revision 1.161 / (download) - annotate - [select for diffs], Sun Dec 26 14:57:19 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.160: +4 -3 lines
Diff to previous 1.160 (colored)

be less verbose by default: no need to show the look-ups in dependent
and libs packages, since we do that all the time now and it works,
and since we have a good error message when it fails.

Revision 1.160 / (download) - annotate - [select for diffs], Tue Dec 21 01:43:58 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.159: +18 -15 lines
Diff to previous 1.159 (colored)

correct checks to allow for a package to replace several packages.

Revision 1.159 / (download) - annotate - [select for diffs], Mon Dec 20 22:43:25 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.158: +17 -15 lines
Diff to previous 1.158 (colored)

allow a replacing package to replace several packages, in principle:
this is just a question of iterating over the replaced packages.

The fun part (can_install) still isn't done: wholesale replacements like
that mean the inter-dependencies between the replaced packages don't
count.

Revision 1.158 / (download) - annotate - [select for diffs], Mon Dec 20 22:19:24 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.157: +3 -0 lines
Diff to previous 1.157 (colored)

plug more handle leaks.

Revision 1.157 / (download) - annotate - [select for diffs], Mon Dec 20 21:31:22 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.156: +2 -1 lines
Diff to previous 1.156 (colored)

plug fd leak.

Revision 1.156 / (download) - annotate - [select for diffs], Mon Dec 20 17:17:32 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.155: +6 -3 lines
Diff to previous 1.155 (colored)

remember to close what should be closed...

Revision 1.155 / (download) - annotate - [select for diffs], Mon Dec 20 12:56:19 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.154: +8 -6 lines
Diff to previous 1.154 (colored)

store pkgname in handle directly, so that we can delete the packing-list
itself when we're done: much lower memory footprint.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Dec 20 12:32:01 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.153: +2 -1 lines
Diff to previous 1.153 (colored)

repair error message: set_pkgname so that we don't report for the last
package.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Dec 20 12:16:09 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.152: +14 -3 lines
Diff to previous 1.152 (colored)

keep a hash of installed packages, so that we can refuse to replace a
package that just got installed.
Also allows us to give a full tally of what reorder did in kitchensink.

Revision 1.152 / (download) - annotate - [select for diffs], Sun Dec 19 14:47:33 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.151: +53 -37 lines
Diff to previous 1.151 (colored)

simplify solve_dependencies: always compute to_install array (it is
reasonably cheap). Remove else conditions, use next: after all, it's
a simple pattern, try one solution after the other until one succeeds.
Pass state to access replace: in that case, first try the list of
packages to install/update so that we force them into proper order.

Add a mark to handles for finished packages: with -r, we can no longer rely
on installed packages to avoid doing the work twice.

Revision 1.151 / (download) - annotate - [select for diffs], Sun Dec 19 14:09:53 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.150: +3 -37 lines
Diff to previous 1.150 (colored)

move conflict code to PkgCfl.

Revision 1.150 / (download) - annotate - [select for diffs], Sat Dec 18 14:40:27 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.149: +4 -2 lines
Diff to previous 1.149 (colored)

kitchensink mode will proceed if it can't find a dependent package...

Revision 1.149 / (download) - annotate - [select for diffs], Sat Dec 18 14:37:30 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.148: +4 -1 lines
Diff to previous 1.148 (colored)

if we can't find a package, and it's there to solve a dependency,
say so.

Revision 1.148 / (download) - annotate - [select for diffs], Sat Dec 18 13:34:36 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.147: +25 -3 lines
Diff to previous 1.147 (colored)

implement special `kitchensink' option for testers.

Revision 1.147 / (download) - annotate - [select for diffs], Sat Dec 18 13:20:53 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.146: +50 -20 lines
Diff to previous 1.146 (colored)

basic code to handle legacy .libs-* packages: figure out what collisions
the new package actually has with old libs. If none is found, we can
proceed.

Prepare pkg_add to deal with it: switch into replacing mode as soon
as something fishy is going on.

Todo: code to actually delete replaced libraries.

Please note: if you don't play games such as going back to old packages
using replace, this code is enough.

If you update your whole system and remove old .libs-* package without
going back, this code isn't even needed...

Revision 1.146 / (download) - annotate - [select for diffs], Fri Dec 17 11:30:28 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.145: +3 -2 lines
Diff to previous 1.145 (colored)

can postpone grabbing conflict keys.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Dec 16 11:38:27 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.144: +13 -1 lines
Diff to previous 1.144 (colored)

if -f installed, don't treat reinstallation as errors.
if the package is installed, report it's there, don't give any conflict
message.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Dec 16 11:19:58 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.143: +2 -1 lines
Diff to previous 1.143 (colored)

save depend information into cache when package is installed.

Revision 1.143 / (download) - annotate - [select for diffs], Thu Dec 16 11:07:33 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.142: +13 -29 lines
Diff to previous 1.142 (colored)

renamed borked_installation from borked.n to partial-<pkgname> ...
partial-<pkgname>.n if needed.

Make borked_installation take a message, to show installation/deinstallation
issues correctly.

Fix handling of ^C: this may lead some system calls to return early, thus
registering as errors: so always mark the last file as done, so that borked
installation will register it correctly.

Kill packing-list cache for anything but depends: we've got a global cache
of libraries now (use it in pkg_add).

Make almost everyone look at $main::not, so that we can call
register_installation
to_installation
RequirementList->add/delete
safely.

Simplify $not logic accordingly, do thing much more closely to what would
happen without -n.

This should allow pkg_add/pkg_delete -n to handle most nasty cases correctly
now, since all the relevant information is kept internally in a compact
format:
- register of shared libraries
- global register of conflicts
- cache of depends.

Revision 1.142 / (download) - annotate - [select for diffs], Wed Dec 15 01:07:10 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.141: +12 -10 lines
Diff to previous 1.141 (colored)

move -n down into RequiredBy and PackingList (as $main::not, since we
don't want to load RequiredBy all the time).
Remove a few $state->{not} tests that are no longer needed.

pkg_add -n / pkg_delete -n should work much better when they need to
handle multiple dependencies.

(todo: kill plist caches, finish replacing with specialized caches like
libraries).

Revision 1.141 / (download) - annotate - [select for diffs], Mon Dec 13 21:28:08 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.140: +18 -25 lines
Diff to previous 1.140 (colored)

pull all the conflict checking code into one single function, makes
things much simpler...

Revision 1.140 / (download) - annotate - [select for diffs], Mon Dec 13 21:14:16 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.139: +9 -6 lines
Diff to previous 1.139 (colored)

since we store dependencies we looked at, show them in the clue() message,
so that people can try to figure out why the library wasn't found.

Revision 1.139 / (download) - annotate - [select for diffs], Mon Dec 13 18:29:51 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored)

avoid brutal exits from loop.

Revision 1.138 / (download) - annotate - [select for diffs], Sun Dec 12 11:26:15 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.137: +33 -30 lines
Diff to previous 1.137 (colored)

add somewhat more regular error catching code.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Dec 9 18:46:00 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.136: +14 -2 lines
Diff to previous 1.136 (colored)

while upgrading, protect deletion in an eval: we've got an extract
package that should be registered as borked if something should go
wrong (which can happen if -f update, as I just witnessed with firefox).

Revision 1.136 / (download) - annotate - [select for diffs], Tue Dec 7 19:09:04 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.135: +3 -2 lines
Diff to previous 1.135 (colored)

wrap pkg_add usage.

Revision 1.135 / (download) - annotate - [select for diffs], Tue Dec 7 12:19:34 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.134: +23 -40 lines
Diff to previous 1.134 (colored)

postpone check of conflicts until we have a packing-list.
this was an optimisation, but it doesn't make much sense:
not checking the packing-list first means we don't see some
errors in case of conflicts. And having the packing-list simplifies
the check-for-update operation.

Revision 1.134 / (download) - annotate - [select for diffs], Mon Dec 6 21:55:01 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.133: +10 -1 lines
Diff to previous 1.133 (colored)

explicit clue() for people running 3.6 packages with current pkg_add.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Dec 6 12:35:36 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.132: +17 -7 lines
Diff to previous 1.132 (colored)

Usage

Revision 1.132 / (download) - annotate - [select for diffs], Thu Dec 2 00:04:38 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.131: +11 -4 lines
Diff to previous 1.131 (colored)

make sure we don't call Update::is_needed if we're not doing pkg_add -r.

Revision 1.131 / (download) - annotate - [select for diffs], Sat Nov 27 16:38:26 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.130: +23 -21 lines
Diff to previous 1.130 (colored)

tweak very verbose output.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Nov 27 14:02:50 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.129: +2 -2 lines
Diff to previous 1.129 (colored)

if the package is already installed, check whether updating it makes sense:
look at the context in which both packages were built. If dependencies differ,
then this is a sensible update.

While we're there, try harder to build a conflict list for .libs-* packages.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Nov 23 22:58:02 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.128: +2 -2 lines
Diff to previous 1.128 (colored)

fix name of lib

Revision 1.128 / (download) - annotate - [select for diffs], Mon Nov 22 01:56:13 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.127: +26 -51 lines
Diff to previous 1.127 (colored)

implement global repository for shared libraries.

Revision 1.127 / (download) - annotate - [select for diffs], Sun Nov 21 15:44:55 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.126: +6 -27 lines
Diff to previous 1.126 (colored)

move the system libraries registration code to SharedLibs.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Nov 21 13:32:18 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.125: +32 -32 lines
Diff to previous 1.125 (colored)

check_lib_specs -> check_lib_spec: check one spec at a time, and report on it.
Loop on libdepends now split lib specs by itself.
Better reports, slightly more efficient, clearer.

Use a local sub to factor out common code to deleting pkgspec and REQUIRING
file contents. Rephrase message to say `removing dependency ON'.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Nov 21 13:24:41 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.124: +18 -19 lines
Diff to previous 1.124 (colored)

solved_dependencies becomes a hash, more efficient.

Revision 1.124 / (download) - annotate - [select for diffs], Sat Nov 20 23:38:51 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.123: +6 -7 lines
Diff to previous 1.123 (colored)

opendir can use my variables.

Revision 1.123 / (download) - annotate - [select for diffs], Thu Nov 18 21:48:02 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.122: +101 -20 lines
Diff to previous 1.122 (colored)

support depend (similar to libdepend and newdepend) and wantlib:
put lookup_library code in a separate routine, and add a `harder' mode
for wantlib, that will also look in system libraries, and in the full
tree of dependent packages.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Nov 14 19:25:45 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.121: +4 -4 lines
Diff to previous 1.121 (colored)

stop storing @pkdep into packing-lists, use separate REQUIRING file instead.

Cases where we need to tweak dependencies are well-delimited, and we simply
convert the old installed package to the new model in one step.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Nov 14 13:20:07 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.120: +8 -6 lines
Diff to previous 1.120 (colored)

allows for several -f options, since OpenBSD::Getopt makes this possible

Revision 1.120 / (download) - annotate - [select for diffs], Sun Nov 14 12:54:30 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

cosmetic

Revision 1.119 / (download) - annotate - [select for diffs], Sun Nov 14 11:58:43 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.118: +2 -2 lines
Diff to previous 1.118 (colored)

turn on progress meter by default, use -x to disable it.
document the new stuff, partial reorder of options.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Nov 13 15:00:48 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

force update to replace existing packages.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Nov 13 13:55:02 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.116: +4 -1 lines
Diff to previous 1.116 (colored)

don't store things in cache if we know we're not going to use them again.

Revision 1.116 / (download) - annotate - [select for diffs], Sat Nov 13 13:34:02 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.115: +5 -3 lines
Diff to previous 1.115 (colored)

pkg_add should have -c and -q since it may delete packages.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Nov 13 13:06:11 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.114: +29 -4 lines
Diff to previous 1.114 (colored)

look for libspecs in old packages that match the libdepend specification
as well.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Nov 13 12:49:58 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.113: +5 -2 lines
Diff to previous 1.113 (colored)

synchronize installed stuff, using the cache in -n mode so that -n
installations can proceed to the end...

Revision 1.113 / (download) - annotate - [select for diffs], Sat Nov 13 12:33:01 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.112: +15 -10 lines
Diff to previous 1.112 (colored)

look for available registered libraries, not other stuff.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Nov 13 12:09:01 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.111: +1 -2 lines
Diff to previous 1.111 (colored)

zap comment

Revision 1.111 / (download) - annotate - [select for diffs], Sat Nov 13 11:54:30 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.110: +31 -7 lines
Diff to previous 1.110 (colored)

fix logic error: while splitting libraries, copy cwd over, not move them...

use the same framework in pkg_add while extracting temp packages so that
we will be able to destroy them eventually.

Revision 1.110 / (download) - annotate - [select for diffs], Sat Nov 13 10:47:21 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.109: +2 -33 lines
Diff to previous 1.109 (colored)

move borked_installation over to common routines, prepare it for
Update.

Revision 1.109 / (download) - annotate - [select for diffs], Fri Nov 12 23:11:41 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

parse libspec better, With this, vreaddir can find libraries.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Nov 12 19:42:01 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

don't store hexdigest internally.

Revision 1.107 / (download) - annotate - [select for diffs], Fri Nov 12 00:04:34 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

computed fullname.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Nov 11 12:45:15 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.105: +9 -2 lines
Diff to previous 1.105 (colored)

symetry: updating a package means removing the old one and adding the new
one, tag unsafe operations accordingly...

Revision 1.105 / (download) - annotate - [select for diffs], Thu Nov 11 12:29:20 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.104: +3 -1 lines
Diff to previous 1.104 (colored)

store a ref to %forced in $state, for access anywhere.

Revision 1.104 / (download) - annotate - [select for diffs], Thu Nov 11 12:17:25 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.103: +1 -2 lines
Diff to previous 1.103 (colored)

File::Copy use moves as well.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Nov 11 12:13:57 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.102: +2 -33 lines
Diff to previous 1.102 (colored)

need to move collision_report over as well, and use PackageInfo routines.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Nov 11 11:36:26 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.101: +17 -94 lines
Diff to previous 1.101 (colored)

move some code from pkg_add to OpenBSD/Add.pm, for symetry with pkg_delete.

change prototype of validate_plist, ditch globals cdrom_only and ftp_only
(stash this into state).

Use Warn properly.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Nov 11 11:23:04 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)

don't touch font directories if -n either...

Revision 1.100 / (download) - annotate - [select for diffs], Thu Nov 11 11:16:39 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.99: +20 -11 lines
Diff to previous 1.99 (colored)

introduce shortcuts to read/write contents from_installation/to_installation

use these to simplify all those packing lists manipulations.

demote non-root detection to a warning in -n mode:
fix a couple of minor bugs, of stuff that was run in -n mode and should not.
Namely, manpages were indexed/unindexed (ouch) and tempfiles were creating
during updates.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Nov 11 10:47:26 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.98: +10 -7 lines
Diff to previous 1.98 (colored)

fix interaction of -n -v -r.
don't enable the progress meter if a very verbose mode is on.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Nov 9 11:02:42 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.97: +3 -1 lines
Diff to previous 1.97 (colored)

alternate between package names correctly when replacing a package.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Nov 9 10:17:51 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.96: +13 -4 lines
Diff to previous 1.96 (colored)

save dir in plist, not state (unconfuse script operations when several
plists are present).

Encapsulate `extract' operation in `extract_with_pm' to allow progress meter
to do something sensible when replacing packages.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Nov 9 09:32:17 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.95: +1 -4 lines
Diff to previous 1.95 (colored)

remove code we don't use.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Nov 7 12:19:20 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.94: +5 -4 lines
Diff to previous 1.94 (colored)

shared libraries, preliminary work, a simpler scheme:
compare replaced package with replacing package, mark all changed shared
libraries.
split_old_libs knows how to cobble a new plist off the old one with the
shared libraries.
print_depends_closure knows how to walk the RequiredBy objects to build
a complete list of packages that may depend upon those libraries.

Todo: actually split off the libraries, write a COMMENT/CONTENTS files too,
and register all those dependencies.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Nov 6 12:19:16 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.93: +6 -1 lines
Diff to previous 1.93 (colored)

mark whole state for `replacing' so that only file entries get tempname
markers. Explain about tempname to PackingElement, so that we become
able to save temporary packing-lists (e.g, borking during replace will
now work).

Revision 1.93 / (download) - annotate - [select for diffs], Tue Nov 2 23:53:20 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.92: +4 -1 lines
Diff to previous 1.92 (colored)

logic error: match library version of *new* plist against existing packages.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Nov 1 19:48:58 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.91: +12 -1 lines
Diff to previous 1.91 (colored)

adjust dependencies

Revision 1.91 / (download) - annotate - [select for diffs], Mon Nov 1 19:21:58 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.90: +8 -1 lines
Diff to previous 1.90 (colored)

pkg_add may need to clean up shared items now that it can delete old stuff.
let very verbose mode show moving files around.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Nov 1 19:14:26 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.89: +25 -12 lines
Diff to previous 1.89 (colored)

allows Delete to remove a plist (assuming it's already been validated).
let pkg_add -r compute a replaced package and store its plist in the new
package plist, so that replacement has a chance to proceed.

Not finished yet. Missing:
- real lib depends checks;
- restoring package dependencies after replacement.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Nov 1 14:30:00 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.88: +7 -1 lines
Diff to previous 1.88 (colored)

handle the case of symlinks.
Let pkg_add -r do extraction first, and finish installation later.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Nov 1 11:27:50 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.87: +72 -398 lines
Diff to previous 1.87 (colored)

reorg pkg_add slightly, put all options into state so that we don't need
to use local variables.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Oct 31 12:40:00 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

fix logic error: we will be able to fully validate the new packing-list
in pkg_add -r mode, it's just a question of removing the old package
from the virtual filesystem early, so that we can still check for collisions.

Help getting OpenBSD::Delete self-contained while we're there...

Revision 1.86 / (download) - annotate - [select for diffs], Sun Oct 31 11:33:50 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.85: +39 -29 lines
Diff to previous 1.85 (colored)

Simplify ldconfig handling: one single ensure_ldconfig routine that
reruns ldconfig -R (okay, we don't check that -m would be enough, so what ?)

First hooks for -r: check that replacement should work.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Oct 31 09:06:04 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.84: +1 -6 lines
Diff to previous 1.84 (colored)

Erase old code

Revision 1.84 / (download) - annotate - [select for diffs], Wed Oct 20 11:38:57 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.83: +5 -4 lines
Diff to previous 1.83 (colored)

basic framework for delayed messages.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Oct 19 10:21:49 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

need to prepend destdir to pkgbase for libspecs checking.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Oct 18 12:03:19 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.81: +28 -10 lines
Diff to previous 1.81 (colored)

experimental progress meter.
not active unless you specify -x for pkg_add/pkg_delete.
(option is bound to change)

Revision 1.81 / (download) - annotate - [select for diffs], Mon Oct 18 11:12:21 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.80: +28 -21 lines
Diff to previous 1.80 (colored)

Don't show libspec checking unless very verbose.
Split addition into `parsing' and actual addition.
Don't show parsing info unless verbose, so that pkg_add only
displays the actual pkg addition...

Revision 1.80 / (download) - annotate - [select for diffs], Mon Oct 18 10:51:03 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.79: +49 -23 lines
Diff to previous 1.79 (colored)

use OpenBSD::Getopt so that we can do -v -v.
Be much terser by default, start showing dependency information and
various things only with at least one -v.

Build a `flattened tree' of dependencies information in pkg_add, and
show why we install a given package (idea from deraadt@).

Revision 1.79 / (download) - annotate - [select for diffs], Mon Oct 18 09:38:35 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

fix report of final problems

Revision 1.78 / (download) - annotate - [select for diffs], Sun Oct 17 09:32:21 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.77: +13 -3 lines
Diff to previous 1.77 (colored)

behave according to documentation, e.g., delete groups/users only if -c.
fix typo.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Oct 16 11:01:29 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.76: +31 -5 lines
Diff to previous 1.76 (colored)

Add support for @endfake and pkg_add -Q, to be documented later...

Revision 1.76 / (download) - annotate - [select for diffs], Wed Oct 13 18:39:07 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.75: +27 -1 lines
Diff to previous 1.75 (colored)

@sysctl

Revision 1.75 / (download) - annotate - [select for diffs], Tue Oct 12 09:35:15 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.74: +17 -9 lines
Diff to previous 1.74 (colored)

move conflict handling into a separate function, cleaner...

Revision 1.74 / (download) - annotate - [select for diffs], Mon Oct 11 14:40:04 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.73: +2 -4 lines
Diff to previous 1.73 (colored)

common code for exec/unexec/extraunexec.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Oct 11 14:35:07 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.72: +7 -5 lines
Diff to previous 1.72 (colored)

simplify ldconfig now that we run in an uniform way.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Oct 11 13:46:17 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.71: +7 -3 lines
Diff to previous 1.71 (colored)

aggregate all MESSAGES and display them at the end, with proper markers to
separate distinct packages.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Oct 11 13:29:05 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.70: +15 -5 lines
Diff to previous 1.70 (colored)

move mandir handling to pkg_add/delete time, solely.
Adjust stuff so that pkg_add can run makewhatis just once.
pkg_delete cannot, since it has to have the manpages around still
to remove them...

Revision 1.70 / (download) - annotate - [select for diffs], Mon Oct 11 13:10:25 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.69: +10 -16 lines
Diff to previous 1.69 (colored)

common code for all script running.
Common option for not running scripts: -I for both pkg_add and pkg_delete.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Oct 11 12:50:09 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.68: +45 -39 lines
Diff to previous 1.68 (colored)

more similarities to pkg_delete

Revision 1.68 / (download) - annotate - [select for diffs], Mon Oct 11 12:39:04 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.67: +11 -8 lines
Diff to previous 1.67 (colored)

pass more stuff through state

Revision 1.67 / (download) - annotate - [select for diffs], Mon Oct 11 12:33:59 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.66: +9 -6 lines
Diff to previous 1.66 (colored)

store opt_n and opt_v inside state.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Oct 11 12:25:18 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.65: +21 -22 lines
Diff to previous 1.65 (colored)

store more stuff inside $state

Revision 1.65 / (download) - annotate - [select for diffs], Mon Oct 11 12:13:46 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.64: +33 -21 lines
Diff to previous 1.64 (colored)

move to a structure more similar to pkg_delete.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Oct 11 11:38:35 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.63: +57 -71 lines
Diff to previous 1.63 (colored)

rework error handling through an eval{} so that post really_add always
gets executed, which means we can postpone some stuff until then...

Revision 1.63 / (download) - annotate - [select for diffs], Mon Oct 11 09:44:06 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.62: +11 -10 lines
Diff to previous 1.62 (colored)

split PackageName handling into PackageName stuff/PkgSpec matching.
Kill new method that isn't really used.

Name explicit splitstem() to get the stem of a packagename.

Adjust calls to the interface.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Oct 11 09:13:20 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.61: +39 -29 lines
Diff to previous 1.61 (colored)

reorg error handling slightly, cleaner and clearer.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Sep 24 09:06:50 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)

ditch `config' in the @sample messages, since this more or less covers
all files installed from templates.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Sep 21 22:17:49 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.59: +63 -2 lines
Diff to previous 1.59 (colored)

@newuser/@newgroup initial support:
- groups category and users category that get handled first, so that
those groups/users can be used for other files.
- : separated fields, for easy parsing. Mostly matching useradd groupadd.
- ! for mandatory values.
Missing pkg_delete -c support for now.

okay naddy@, pvalchev@, millert@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Sep 20 10:36:39 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.58: +1 -2 lines
Diff to previous 1.58 (colored)

error out for pkgcfl in pkg_create, but don't warn if it's found in
existing packages or installed packages. Too much noise for now.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Sep 20 09:10:21 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

deals with conflicts, must keep pkgcfl around a little while longer...

Revision 1.57 / (download) - annotate - [select for diffs], Mon Sep 20 07:31:42 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

use fullname() in sample, so that absolute names AND relative names work.
problem noticed by sturm@

Revision 1.56 / (download) - annotate - [select for diffs], Sat Sep 18 13:28:19 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

framework to be able to distinguish packages installed manually (and thus
wanted by the user) from packages installed automatically to satisfy a
dependency.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Sep 18 09:27:05 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.54: +22 -1 lines
Diff to previous 1.54 (colored)

full support for @shell: insert shells into /etc/shells if they're
not already there, and remove them on deinstall.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 14 22:53:17 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.53: +10 -9 lines
Diff to previous 1.53 (colored)

use System or Vsystem everywhere.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 14 22:49:36 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored)

better reporting of conflicts, suggested by naddy@

Revision 1.52 / (download) - annotate - [select for diffs], Tue Sep 14 22:47:48 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

report issues while installing configuration files.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Sep 14 22:46:12 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.50: +27 -9 lines
Diff to previous 1.50 (colored)

use chown/chmod system calls directly where possible.
some System instead of system.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 12 19:18:03 2004 UTC (19 years, 9 months ago) by brad
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

add missing $

ok espie@

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 10 12:04:53 2004 UTC (19 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

typo

Revision 1.48 / (download) - annotate - [select for diffs], Tue Aug 10 11:53:27 2004 UTC (19 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.47: +11 -1 lines
Diff to previous 1.47 (colored)

cosmetic tweak: ensure all dirs always get exactly one / at the end.
cosmetic tweak: do not show a space after a keyword without args.
dir support reworked: keep clones() of dir objects, and call cleanup/reload
routines at end.

@mandir/fontdir support:
both mandir and fontdir remove extra files on delete.
@fontdir creates alias files, runs mkfontdir, and uses fc-cache.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Aug 7 17:27:26 2004 UTC (19 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

use chroot DESTDIR ldconfig in DESTDIR case.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 6 14:33:02 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.45: +5 -2 lines
Diff to previous 1.45 (colored)

protect makewhatis calls inside eval.
failing makewhatis should be a warning at best.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 6 12:21:11 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.44: +5 -3 lines
Diff to previous 1.44 (colored)

use OpenBSD::Makewhatis, avoid forking extra makewhatis.

Note: requires you to update makewhatis to work.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Aug 6 11:36:25 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

fix one of the most bizarre bugs in a while...
found by henning@.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Aug 6 10:23:45 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.42: +26 -1 lines
Diff to previous 1.42 (colored)

@lib shared library marker.

- runs ldconfig to find out search library path.
- if library is in path, mark directory for updating cache.
- run ldconfig when needed, e.g., right before executing something that
might depend on the library.

Doesn't handle destdir case yet.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Aug 6 08:14:51 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.41: +5 -3 lines
Diff to previous 1.41 (colored)

avoid pulling in OpenBSD::md5 and File::Copy if we can.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Aug 6 08:06:01 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.40: +3 -10 lines
Diff to previous 1.40 (colored)

block-scoped require is way simpler than weird AUTOLOAD hack.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Aug 6 07:51:17 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.39: +14 -23 lines
Diff to previous 1.39 (colored)

unified headers, switch to smaller copyright notice.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Aug 5 23:36:39 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.38: +9 -2 lines
Diff to previous 1.38 (colored)

refactor classes in PackingElement to share more code.
- all files go through FileBase, all directories go through DirBase.
- dirclass() is used to switch classes based on final /, so that
@sample, @extra, and @file  all take directories as well.
- set NoDuplicateNames() more thoroughly.
- make sure all no-default-conflict objects are correct.

compute_fullname() checks for absolute paths, allowed for @sample and
@extra.

lastfile only gets set for actual files.

special names like INSTALL are only checked for normal files.

add a CVSTag class for @comment $OpenBSD$, so that these get sorted first.

Changes for make-plist rewrite:

clone() method that can create copies of all hash objects, to specialize
if needed.

add_object() method so that add() is now new() followed by add_object()
for most objects (useful for cloned objects).

Check that plist has a name in pkg_create, allowing PackingList to write
unnamed plists.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 3 12:29:44 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.37: +37 -1 lines
Diff to previous 1.37 (colored)

Support @sample, tested by fries@.
@mandir and @fontdir keywords recognition.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 2 12:12:36 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.36: +13 -1 lines
Diff to previous 1.36 (colored)

@man type file for manpages.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 2 12:08:25 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Reuse first component of @newdepends, @libdepends to contain
a PKG_PATH (easy backward compatibility: is there a slash ?)

That's missing info to enable pkg_add to launch package building
in the ports tree as an alternate source of binary packages.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jul 20 18:58:41 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.34: +13 -1 lines
Diff to previous 1.34 (colored)

support for gnu-info, with @info keyword.
- modify pkg_create so that it will look for info-[0-9]+ and add them
to the packing-list.
- deal with installing the info file/de-installing it at pkg_add/pkg_delete
time.

tested by naddy@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jul 14 10:44:03 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.33: +34 -14 lines
Diff to previous 1.33 (colored)

Rework @dirrm: keep them all, and remove them at the end of pkg_delete.
Add @dir, more powerful than @dirrm, so that we can get rid of those
pesky @exec mkdir -p.

okay naddy@

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 11 20:46:08 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.32: +32 -3 lines
Diff to previous 1.32 (colored)

hunt for the originating packages in case of collision, and sort
the colliding files by package.

okay naddy@, and typo fix naddy/pval.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 21 15:19:33 2004 UTC (19 years, 11 months ago) by miod
Branch: MAIN
Changes since 1.31: +19 -13 lines
Diff to previous 1.31 (colored)

Implement pkg_add -I for real; ok espie@

Revision 1.31 / (download) - annotate - [select for diffs], Wed Apr 28 06:53:17 2004 UTC (20 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Use the string version of system. Works with PAGER=less -s.
ho@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Mar 30 08:55:56 2004 UTC (20 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.29: +7 -2 lines
Diff to previous 1.29 (colored)

wrap each install operation into eval {} so that a die there will leave
us a chance to register what's already happened.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 18 16:49:50 2004 UTC (20 years, 2 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored)

When using an install prefix with -B to install packages, and the packing
list uses @owner, @group and/or @mode, setting these did not use the
install prefix.  ok deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 7 19:29:08 2004 UTC (20 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.27: +59 -10 lines
Diff to previous 1.27 (colored)

A few useful features:
- pkg_add -A arch, to make believe we are extracting on a given arch
(matches pkg_create).
- pkg_add -P cdrom/-P ftp, to enforce extracting only cdrom'able packages
or ftp'able packages. Helps a lot for checking cdrom lists.
- dependency look-up will look through local directory listings to solve
dependencies, so that non-default dependencies will work more seemlessly.
(doing the same thing for distant repository will happen after 3.5, but
this requires more apparatus: caching package lists, and killing/restoring
existing connections, plus more error handling).

okay pval

Revision 1.27 / (download) - annotate - [select for diffs], Fri Feb 20 19:13:51 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.26: +31 -12 lines
Diff to previous 1.26 (colored)

PKG_DESTDIR / -B support in pkg_add.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 28 22:12:01 2004 UTC (20 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.25: +11 -5 lines
Diff to previous 1.25 (colored)

Add -L to record/enforce localbase.
Okay sturm@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 27 17:47:45 2004 UTC (20 years, 4 months ago) by sturm
Branch: MAIN
Changes since 1.24: +6 -2 lines
Diff to previous 1.24 (colored)

Don't just detect errors in pre_add(), but exit. Gets rid of strange
error messages if a dependency cannot be installed.

found by naddy@, ok espie@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jan 27 14:50:52 2004 UTC (20 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.23: +26 -9 lines
Diff to previous 1.23 (colored)

first series of -forced switches, looks okay to henning@.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 27 13:09:16 2004 UTC (20 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.22: +8 -3 lines
Diff to previous 1.22 (colored)

-f framework, manpage fixes.
comments and okay jmc@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 22 21:11:43 2004 UTC (20 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.21: +27 -0 lines
Diff to previous 1.21 (colored)

document/activate @arch. Fix list handling.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 1 17:20:54 2004 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

post-INSTALL script falling -> record installation as a borked package
instead of aborting outright with loads of files unregistered...

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 26 16:34:05 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (colored)

pkg_add reports size taken on each fs.
Reorg and clean Vstat a bit.
okay naddy@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 21 18:41:23 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.18: +19 -13 lines
Diff to previous 1.18 (colored)

Add virtual file system, so that pkg_add and pkg_delete can check for
read-only status, or size concerns, before even beginning to add/remove
files.

Allows pkg_add -n and pkg_delete -n to be more thorough as well.

Some testing by Todd Millert, comments by Greg Steuck and Sam Smith.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 19 00:29:20 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.17: +3 -4 lines
Diff to previous 1.17 (colored)

Clean up PackageLocator so it looks somewhat more object-oriented.
Most importantly, put all the state information into the created object,
so that the actual archive can be closed, later reopened, and scanned
until the correct file is found.

This will be used to allow retrieving packages through ftp without keeping
loads of connections opened because of dependency resolving.

Approved by fries and naddy.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 10 11:12:22 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.16: +8 -7 lines
Diff to previous 1.16 (colored)

Replace Adding/Deleting with "Pretending to add/delete" in -n mode.
Pick up DISPLAY from staging area, so that it gets found even if -n.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 9 19:10:35 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Spell out which dependencies are getting solved so that pkg_add output
is less confusing.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 9 19:08:44 2003 UTC (20 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.14: +14 -5 lines
Diff to previous 1.14 (colored)

Fix logic for error handling, especially if -n is specified.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 10 13:25:50 2003 UTC (20 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.13: +9 -6 lines
Diff to previous 1.13 (colored)

Fine-grained handling of errors, pkg already installed is not an error.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Nov 9 16:13:37 2003 UTC (20 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.12: +8 -2 lines
Diff to previous 1.12 (colored)

count errors while installing packages, and exit(1) if errors.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 9 15:42:48 2003 UTC (20 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

fix semantics to match old tools. This prefix is what was passed on
the command line, not the first cwd in the archive, sorry.

No way to override this currently.

To be safe,
- packages would need to be built with a specific base.
- packages would need to be installed with the same base.

Somewhat the same semantic difference as with LOCALBASE/PREFIX.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 6 22:05:19 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.10: +5 -1 lines
Diff to previous 1.10 (colored)

handle +DISPLAY

Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 6 18:42:01 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

set env PKG_PREFIX for compatibility with old tools.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 6 18:13:12 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.8: +44 -0 lines
Diff to previous 1.8 (colored)

verify libspec fully again (same code as old pkg add-on, mostly).
This ends the current batch of updates.
Much thanks to sturm@ for testing and comments.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Nov 6 18:12:07 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.7: +70 -50 lines
Diff to previous 1.7 (colored)

Split off dependency solving into its own function.
pkg without dependencies is not a special case, it will simply
end up with an empty solved dependency list.

Try harder to resolve dependencies without resorting to default, use
other arguments on the command line first.

This makes it possible to have pkg_add * run for the CD even if the CD
doesn't contain only default packages as long as the packages satisfy the
dependencies.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Nov 6 18:06:00 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

do not try to run the post-install script on an aborted pkg_add.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 6 18:04:10 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.5: +57 -8 lines
Diff to previous 1.5 (colored)

split out the registration process, and add a ^C handler, to that
half-installed packages register in a sensible way.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 6 17:59:23 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.4: +32 -14 lines
Diff to previous 1.4 (colored)

Handle pkg_add -
let pkg_add postpone conflict handling until it has the real name of
the package if necessary, and let PackageLocator deal correctly with a '-'
filename.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 26 11:09:27 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.3: +6 -6 lines
Diff to previous 1.3 (colored)

cosmetic change, people read preadd as p_read_d, so make it explicit:
preadd -> pre_add
reallyadd -> really_add

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 20 17:29:56 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Missing undef. conflicts is an error.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 19 18:42:55 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

plist's has/get methods for accessing elements: perl ->{} has quirks
that make it unusable for looking up constants correctly.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Oct 16 17:43:34 2003 UTC (20 years, 7 months ago) by espie
Branch: espie
CVS Tags: pkgtools
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

new import of my pkgtools, after a slight naming disagreement with the
Upper Management...

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 16 17:43:34 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.