summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
AgeCommit message (Collapse)Author
2004-12-16renamed borked_installation from borked.n to partial-<pkgname> ...Marc Espie
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.
2004-12-09make -f scripts work again, and document it properly in both pkg_add andMarc Espie
pkg_delete since it now works for both.
2004-11-21pull the code that handles shared libraries (ldconfig for now) aside.Marc Espie
2004-11-18add @wantlib and @depend keywordMarc Espie
2004-11-13correctly read back tempnames.Marc Espie
2004-11-13likewise, packing-lists state will store refs to cwd, so make thisMarc Espie
a true object with cwd()/set_cwd() functions.
2004-11-13cwd() function so that further changes to internal storage won't matterMarc Espie
that much.
2004-11-12store a ref to cwd instead of cwd itself, allowing it to be shared.Marc Espie
2004-11-12avoid even more calls to canonpath.Marc Espie
2004-11-12stop storing fullname, recompute it dynamically instead.Marc Espie
2004-11-12do catfile manually, e.g., avoid several calls to canonpath.Marc Espie
2004-11-12don't store hexdigest internally.Marc Espie
2004-11-11don't touch font directories if -n either...Marc Espie
2004-11-07don't try to be smart and not store the full tempname: we don't use thisMarc Espie
except in rare cases, so it doesn't matter if the tempname is long, and it doesn't justify missing extra code to restore it when reading the packing-list...
2004-11-06mark whole state for `replacing' so that only file entries get tempnameMarc Espie
markers. Explain about tempname to PackingElement, so that we become able to save temporary packing-lists (e.g, borking during replace will now work).
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-23system() method that stores command normal output so that we can showMarc Espie
it at end of pkg install/deinstall... use for @exec/INSTALL stuff.
2004-10-20basic framework for delayed messages.Marc Espie
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-16Add support for @endfake and pkg_add -Q, to be documented later...Marc Espie
2004-10-13@sysctlMarc Espie
2004-10-12nicer displayMarc Espie
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-11add support for undisplay file, to be able to show information at pkgMarc Espie
removal without having to run a DEINSTALL script...
2004-10-05move expand down to ::ExeclikeActionMarc Espie
2004-10-05unbreak expandMarc Espie
2004-10-05explicitly call the right destate for ExtradirMarc Espie
2004-10-05more inheritance, reorder stuff slightlyMarc Espie
2004-10-05intermediate ::DirlikeObject class, so that all dir objects inherit fromMarc Espie
it, including ::DirRm.
2004-10-05unbreak pure comments, handle @option at new level.Marc Espie
2004-10-05Let DirBase inherit from FileObjectMarc Espie
2004-10-05mark stuff as annotations. don't create ignore objects, since they areMarc Espie
proper annotations. ditch multiple inheritance for CVSTag, like ExtraInfo, since these being comments is more an historic artefact than anything else.
2004-10-05derive ::PkgCfl from ::ConflictMarc Espie
2004-10-05basic destate for ::FileObject, derive ::Exec, ::Unexec, ::ExtraunexecMarc Espie
from ::ExeclikeAction
2004-10-05unique objects only need to override add_object.Marc Espie
2004-10-05fullname and mode stuff only concerns ::ObjectMarc Espie
2004-10-05Only ::FileObject need to do the dirclass test, other objects don'tMarc Espie
become dirs/
2004-10-05NoDuplicateNames = 1 is a ::FileObject propertyMarc Espie
2004-10-04link FileObject, State, Action.Marc Espie
2004-10-04link `Meta/Unique' class hierarchy. Ditch some common code.Marc Espie
2004-10-04basic class hierarchy to cut up packing-list items into better groups.Marc Espie
2004-10-04fix bogus indentationMarc Espie
2004-09-21@newuser/@newgroup initial support:Marc Espie
- 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@
2004-09-20error out for pkgcfl in pkg_create, but don't warn if it's found inMarc Espie
existing packages or installed packages. Too much noise for now.
2004-09-20old pkgcfl is dead.Marc Espie
2004-09-18framework to be able to distinguish packages installed manually (and thusMarc Espie
wanted by the user) from packages installed automatically to satisfy a dependency.