summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
AgeCommit message (Collapse)Author
2007-07-14- there's no point in running mkfontdir only for @fontdir ; so let's runAntoine Jacoutot
mkfontscale too (and remove fonts.scale on package removal) discussed with matthieu@ and espie@ weeks ago "seems fine" pyr@, ok espie@
2007-06-30move the UpdateSet stuff into its separate file, leaving Vstat much cleaner.Marc Espie
2007-06-30fix saving of old partial packages... problem noticed by Paul IroftiMarc Espie
2007-06-26the big gap one: create UpdateSet for all packages being installed, andMarc Espie
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.
2007-06-25placeholder to split off the code that handles UpdateSets, as it'sMarc Espie
currently scattered all over the place.
2007-06-25typoMarc Espie
2007-06-23setup a local sigalarm to send a HUP to the ftp process if it takes longerMarc Espie
than 30 seconds to stop... 30 seconds chosen as a `nice' average value. Note that this is a `work-around' for some specificities of ftp(1), which usually doesn't react to SIGINT, but reacts instantly to SIGHUP...
2007-06-20sprinkle code to deal gracefully with absent packing-lists.Marc Espie
makes it easier for people to recover after a disk crash that leaves /var/db/pkg half-empty.
2007-06-19first draft of a tag solver, needs more flesh to be useful (especially:Marc Espie
transform the lib cache into a tags/lib cache)
2007-06-19sometimes, wanting to share code gives insight: disentangle the codeMarc Espie
that walks dependencies entirely. It is far less related to the main solver than I thought, it can be built when needed, and own its own state. Much cleaner design.
2007-06-18... and zap old codeMarc Espie
2007-06-18reorganize lookup_library so I can reuse the exact same algorithm toMarc Espie
look up different things (in particular, the incremental lookup through dependencies).
2007-06-18more uniform: all deps routines should be methods, even if they don'tMarc Espie
use the data.
2007-06-18add tag no shadow, to allow us to specify that we do NOT want tempfilesMarc Espie
into some directories. a few minor style tweaks, such as using a nice join(map()) to build some strings.
2007-06-17fix format for timestamps. Use a non-ambiguous subset of ISO8601.Marc Espie
2007-06-17more scaffolding we don't really use yet.Marc Espie
2007-06-17add a bit of scaffolding for signaturesMarc Espie
2007-06-16introduce new stuff: @tag, to be used to tag files and other objects.Marc Espie
Only one tag for now: no checksum. Will supersede @comment no checksum eventually. Benefit: errors out in case of a typo.
2007-06-16Add variation on exec/unexec:Marc Espie
@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.
2007-06-16FTP_KEEPALIVE as a crude interface to ftp -k. To be thought out later.Marc Espie
this is just an experiment.
2007-06-16use OpenBSD::Paths contentsMarc Espie
2007-06-14Really cleanup temporary directories.Matthias Kilian
"commit that now, please." espie@
2007-06-14I don't know what we will do with system packages yet, but preventMarc Espie
them from getting deleted.
2007-06-14minor changes: move @ignore to deprecated stuff (it's been out for a fewMarc Espie
months now), register lastfileobject for future changes, make a common class for uniqueoptions.
2007-06-12use constant subs instead of variable names.Marc Espie
Turns out completely specified variable names do not warn, even if strict, so the previous scheme was not immune from typos.
2007-06-12tidy error messages: uses $! more consistently, do not append \n on die,Marc Espie
do append \n on warn. Fix the two cases where the temp dir vanished too soon: not copying +DESC should have been apparent. Not finding a +DISPLAY file is not a reason for burping all over the place.
2007-06-12tag directories and files with pid, so that we clean them up when theMarc Espie
corresponding process dies, not before...
2007-06-11keep on extracting stuffMarc Espie
2007-06-10give repository/locations slightly more control over package names.Marc Espie
2007-06-10Add Paths.pm, to centralize all system dependent paths all over the place.Marc Espie
okay millert@, deraadt@
2007-06-10extract constructor to create old handles.Marc Espie
2007-06-10set_infodir when we can in PackageLocation.Marc Espie
Create a full handle for replaced packages as well.
2007-06-10make the replacement check methods slightly clearer, avoid doing twoMarc Espie
things at once, mostly.
2007-06-10refactor the code a bit, so that lists through ftp and htpp share moreMarc Espie
code. Finally handle ftp_proxy (close PR 5308).
2007-06-09tag user installed packages.Marc Espie
- record what's on the command line. - adjust option depending on -a / !-a - report `manual-install' status when replacing stuff.
2007-06-09rework `special' package names a bit.Marc Espie
- 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.
2007-06-09give Dependencies a chance at finding libraries in old packages.Marc Espie
2007-06-09new code is much sturdier with respect to old libraries, we do not haveMarc Espie
to consider .libs-* as `special case', saving old libraries should do the right thing in all cases, more or less...
2007-06-07show messages about keeping libraries more often, starting on verbose.Marc Espie
2007-06-07make compute_size explicit. That way, we can do it once, at the rightMarc Espie
moment.
2007-06-06do it only for older sets.Marc Espie
2007-06-06finish moving the size computations out of validate_plist.Marc Espie
2007-06-06separate the size computation from other operations in `prepare_for_addition'Marc Espie
`prepare_for_deletion' -> move that to Vstat, as it is common code. Do the splitting of libraries through a deep copy and shallow copy, so that we keep any State information related to libraries (like special group/owners).
2007-06-06tweak split_libs slightly for further changes: make it return the oldMarc Espie
packing-list, and the new, instead of doing `in-place' edition of the plist contents.
2007-06-06recognize and handle https.Marc Espie
2007-06-06tweak how copies happen: rename make_copy into make_shallow_copy,Marc Espie
make_deep_copy. tweak keep_old_files so that we set the pkgname later, when it won't cause any error to have duplicates in there.
2007-06-06augment reporting of bad problems so that it works with system libs.Marc Espie
reverse bogus minor check as well
2007-06-05allow accessing all older values (make a semantic distinction), so thatMarc Espie
adjust_dependencies gets access to all. This fixes some bogus replacements.
2007-06-05reuse the compute_closure code.Marc Espie
2007-06-04zap extra paramMarc Espie