summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_delete
AgeCommit message (Collapse)Author
2005-01-22do not clean-up shared items in pretend mode (for now, need extra logicMarc Espie
to pretend cleaning it up).
2005-01-14`big lock' model: lock the whole db for reading/writing.Marc Espie
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.
2005-01-03rename -f -> -FMarc Espie
okay pvalchev@, naddy@, marco@, deraadt@ (keep -f around for the transition, will scrap it soon)
2004-12-27recover from a nasty problem, allow people to delete package even ifMarc Espie
some dependency got badly adjusted.
2004-12-27better messageMarc Espie
2004-12-15move -n down into RequiredBy and PackingList (as $main::not, since weMarc Espie
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).
2004-12-12add somewhat more regular error catching code.Marc Espie
2004-12-06UsageMarc Espie
2004-11-15clean-up: pull all option parsing together.Marc Espie
2004-11-14allows for several -f options, since OpenBSD::Getopt makes this possibleMarc Espie
2004-11-14turn on progress meter by default, use -x to disable it.Marc Espie
document the new stuff, partial reorder of options.
2004-11-14let RequiredBy generate lists directly, use hashes to trim down duplicates ↵Marc Espie
directly. Optimize for !wantarray, by telling whether the list is empty or not. prepare for a second similar list (REQUIRING) that will replace pkgdep, since pkg_add -r spends a hell of a lot of its time reading/writing long packing-lists... Use the simplified interface. Remove quite a few tests that the RequiredBy list is non-empty that do nothing but obfuscate the code: just deal with the damn list already.
2004-11-11reversed test.Marc Espie
2004-11-11store a ref to %forced in $state, for access anywhere.Marc Espie
2004-11-11move some code from pkg_add to OpenBSD/Add.pm, for symetry with pkg_delete.Marc Espie
change prototype of validate_plist, ditch globals cdrom_only and ftp_only (stash this into state). Use Warn properly.
2004-11-11don't touch font directories if -n either...Marc Espie
2004-11-11introduce shortcuts to read/write contents from_installation/to_installationMarc Espie
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.
2004-11-11fix interaction of -n -v -r.Marc Espie
don't enable the progress meter if a very verbose mode is on.
2004-11-09kill old Logger interface, use $state->print() to report problems atMarc Espie
end exclusively now.
2004-11-07show tally in verbose mode as well, why not ?Marc Espie
2004-10-31Simplify ldconfig handling: one single ensure_ldconfig routine thatMarc Espie
reruns ldconfig -R (okay, we don't check that -m would be enough, so what ?) First hooks for -r: check that replacement should work.
2004-10-31Move most of the code of pkg_delete into a separate module so that it willMarc Espie
be usable by pkg_add -r.
2004-10-31Erase old codeMarc Espie
2004-10-26kill old duplicate code.Marc Espie
2004-10-26move the code that handles shared items into a separate Module.Marc Espie
- It will be used after deletion/adding during updates. - We might avoid loading it if a package contains no new directories. Actually a lot of packages don't use it.
2004-10-23store pkgname in shared items, so that delayed printing can be usedMarc Espie
(and use it). Optimisation: don't clone() directories
2004-10-20basic framework for delayed messages.Marc Espie
2004-10-19Extra progress meter for the handling of shared items: first showMarc Espie
the reading of remaining stuff from installed packages, then the cleaning-up as it progresses.
2004-10-18experimental progress meter.Marc Espie
not active unless you specify -x for pkg_add/pkg_delete. (option is bound to change)
2004-10-18use OpenBSD::Getopt so that we can do -v -v.Marc Espie
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@).
2004-10-17behave according to documentation, e.g., delete groups/users only if -c.Marc Espie
fix typo.
2004-10-11common code for exec/unexec/extraunexec.Marc Espie
2004-10-11simplify ldconfig now that we run in an uniform way.Marc Espie
2004-10-11aggregate all MESSAGES and display them at the end, with proper markers toMarc Espie
separate distinct packages.
2004-10-11move mandir handling to pkg_add/delete time, solely.Marc Espie
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...
2004-10-11common code for all script running.Marc Espie
Common option for not running scripts: -I for both pkg_add and pkg_delete.
2004-10-11$state->{beverbose} = $state->{verbose} || $state->{not}Marc Espie
2004-10-11tweak, make it work a bit more like pkg_addMarc Espie
2004-10-11add support for undisplay file, to be able to show information at pkgMarc Espie
removal without having to run a DEINSTALL script...
2004-09-24ditch `config' in the @sample messages, since this more or less coversMarc Espie
all files installed from templates.
2004-09-242nd half of @newuser/@newgroup: treat them as shared items, and removeMarc Espie
them along with directories, if extra.
2004-09-21typoMarc Espie
2004-09-21rename cleanup dirs functions, since they will apply to all shared itemsMarc Espie
soon.
2004-09-20use fullname() in sample, so that absolute names AND relative names work.Marc Espie
problem noticed by sturm@
2004-09-18full support for @shell: insert shells into /etc/shells if they'reMarc Espie
not already there, and remove them on deinstall.
2004-09-14better wording for documentation.Marc Espie
use System more or less everywhere. prepare to delete info directories properly.
2004-08-11protect main loop of pkg_delete with an eval, so thatMarc Espie
ldconfig, directory removal, manpage handling, and fontdir handling always happen.
2004-08-10typoMarc Espie
2004-08-10cosmetic tweak: ensure all dirs always get exactly one / at the end.Marc Espie
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.
2004-08-09record remaining DirRms.Marc Espie