summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Delete.pm
AgeCommit message (Collapse)Author
2009-11-28add (n to go) to pkg_delete as well.Marc Espie
2009-11-16create a pseudo vstat object inside state, so that we can modify VstatMarc Espie
interface very locally... model hints objects like Locations, to uniformize further treatment.
2009-11-11vsystem, system, unlink can mostly go through state, and do the ->clear partMarc Espie
as well.
2009-11-11also get most STDERR messages through the same wayMarc Espie
2009-11-11progressmeter puts STDOUT in autoflush if -t, so that it can display to it ↵Marc Espie
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...
2009-11-11remove forwarders, and provide a sensible API that says what's going onMarc Espie
(e.g., we're logging information for later).
2009-11-10bad espie: use strict/warnings consistently, and fix two nits and twoMarc Espie
actual errors !
2009-10-11overlay extract/delete/install messages, for shorter reports in normal modeMarc Espie
2009-04-19synch with my new style search/location changesMarc Espie
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.
2009-04-18don't copy DigitalSig to partial packages, it makes no senseMarc Espie
2009-04-14initial implementation of package signatures, based on x509 certificates andMarc Espie
smime detached signatures.
2008-10-20Say goodbye to local $_Marc Espie
lexical scoping is so much neater (courtesy of perl 5.10)
2008-10-06turn the checksums stored in packing elements into real objects, so thatMarc Espie
pkg_add becomes mostly independent of the type of checksum stored. separate md5 into an abstract OpenBSD::digest class and an md5 subclass with specific methods to compute checksums and serialize results, and create an sha class that does the same thing with sha256 (with a base64 serializer)
2008-06-11defer to the packing element for computing md5Marc Espie
2008-03-11oopsMarc Espie
2008-03-08better -q: mention once, and it speeds up (assumes normal files haven'tMarc Espie
changed), but still checks config files. Use twice, and wipe your config out as well.
2008-03-08tweak messages mentioning checksums so that they mention checksums, notMarc Espie
specifics like md5, since that's likely to change.
2008-03-03fix utterly confusing message for updates.Marc Espie
okay bernd@/deraadt@
2007-06-30fix saving of old partial packages... problem noticed by Paul IroftiMarc Espie
2007-06-25typoMarc Espie
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-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-16use OpenBSD::Paths contentsMarc Espie
2007-06-14I don't know what we will do with system packages yet, but preventMarc Espie
them from getting deleted.
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 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-04zap dead code: we no longer use DirRm.Marc Espie
stop recognizing @comment MD5: as special.
2007-06-04some minor systematic changes.Marc Espie
- 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.
2007-06-04fix keep_old_filesMarc Espie
2007-06-02move dependency registration into its own function.Marc Espie
2007-06-01refactor ProgressMeter code to create objects, put these into state.Marc Espie
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.
2007-05-31move set validation earlier (in fact, it probably doesn't belong inMarc Espie
really_add). move common delete_installed() code inside Delete.pm
2007-05-31kill REQ script directly. I'm pretty sure it doesn't quite work anyways.Marc Espie
Deprecate INSTALL and DEINSTALL, write out warnings in pkg_create. Clean up some more old cruft
2007-05-31a few cosmetic changes, move realname over to PackingElement to beMarc Espie
able to use it in other cases.
2007-05-30simplify script handling a bit (they're going to disappear probably anyways).Marc Espie
Remove two passes visitors, we don't use them.
2007-05-30simplify really_add to use real visitors for extraction and installation.Marc Espie
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.
2007-05-30don't bother not copying the pkgname, we're going to overwrite it anyways.Marc Espie
2007-05-30redo keep_old_files as a visitor. Copy more stuff over.Marc Espie
2007-05-29rely on packing-lists knowing where they live, much saner.Marc Espie
2007-05-28delay error reporting a bit more: try installing and deinstalling everythingMarc Espie
and report more issues.
2007-05-28lift up more of the dev checking code into Vstat.Marc Espie
un-special case SpecialFiles on deletion. Now that CONTENTS is part of the plist, it's checked as well on addition.
2007-05-28clean up packing-list validation, call the methods `prepare_for_addition'Marc Espie
and `prepare_for_deletion', that's clearer...
2007-05-22zap references to pkgdep. Packing-Lists no longer even record it, anyways.Marc Espie
2007-05-22introduce a SharedItemsRecorder (put it into Vstat, since that's a fileMarc Espie
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).
2007-05-22mark `digitalsignature' as a known keyword, which helps me.Marc Espie
Use autovivification on stuff to remove.
2007-05-15do not copy pkgname, since we're going to erase it, and packing-listsMarc Espie
now detect duplicate stuff.
2007-05-14tidyMarc Espie
2007-05-07make sure all temporary file handling goes through OpenBSD::TempMarc Espie
2007-05-07name code from keep_old_files, don't set pkgname directly.Marc Espie