summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_delete
AgeCommit message (Collapse)Author
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
2004-08-07use chroot DESTDIR ldconfig in DESTDIR case.Marc Espie
2004-08-06protect makewhatis calls inside eval.Marc Espie
failing makewhatis should be a warning at best.
2004-08-06use OpenBSD::Makewhatis, avoid forking extra makewhatis.Marc Espie
Note: requires you to update makewhatis to work.
2004-08-06@lib shared library marker.Marc Espie
- 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.
2004-08-06unified headers, switch to smaller copyright notice.Marc Espie
2004-08-06Extradir name.Marc Espie
Don't bother deleting it if it's not there.
2004-08-06deinstall DirRm like DirBase.Marc Espie
2004-08-05refactor classes in PackingElement to share more code.Marc Espie
- 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.