summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2004-12-20don't display some details in -n mode unless very verbose.Marc Espie
2004-12-20keep a hash of installed packages, so that we can refuse to replace aMarc Espie
package that just got installed. Also allows us to give a full tally of what reorder did in kitchensink.
2004-12-20Add support for displaying Shared Spanning Tree Protocol frames, a minorChristopher Pascoe
variation on 802.1d/STP. ok otto@ mcbride@
2004-12-19sanity check: in -n mode, we end up replacing stuff that doesn't exist ?Marc Espie
2004-12-19don't create path if -n.Marc Espie
2004-12-19simplify solve_dependencies: always compute to_install array (it isMarc Espie
reasonably cheap). Remove else conditions, use next: after all, it's a simple pattern, try one solution after the other until one succeeds. Pass state to access replace: in that case, first try the list of packages to install/update so that we force them into proper order. Add a mark to handles for finished packages: with -r, we can no longer rely on installed packages to avoid doing the work twice.
2004-12-19move conflict code to PkgCfl.Marc Espie
2004-12-19use strchr instead of indexTheo de Raadt
2004-12-18reflect reality.Marc Espie
2004-12-18kitchensink mode will proceed if it can't find a dependent package...Marc Espie
2004-12-18if we can't find a package, and it's there to solve a dependency,Marc Espie
say so.
2004-12-18document kitchensink optionMarc Espie
2004-12-18display something when files ought to get moved in -n.Marc Espie
2004-12-18ignore size issues in kitchensink pretend mode.Marc Espie
Be consistent: show added files and deleted files if pretending.
2004-12-18oops, don't compute fullname unless we know we can.Marc Espie
2004-12-18implement special `kitchensink' option for testers.Marc Espie
2004-12-18basic code to handle legacy .libs-* packages: figure out what collisionsMarc Espie
the new package actually has with old libs. If none is found, we can proceed. Prepare pkg_add to deal with it: switch into replacing mode as soon as something fishy is going on. Todo: code to actually delete replaced libraries. Please note: if you don't play games such as going back to old packages using replace, this code is enough. If you update your whole system and remove old .libs-* package without going back, this code isn't even needed...
2004-12-17can postpone grabbing conflict keys.Marc Espie
2004-12-17better collision reports.Marc Espie
- in validate_plist, don't re-add a file that exists. - allows the virtual file system to put marks on existing files - use a \$pkgname the first time a file is added (space constraints: don't duplicate the pkgname). - in CollisionReport, first check the vfs, so that we don't look at installed packages when the collision only concerns newly added pkgs. Makes pkg_add -n report collision reports correctly.
2004-12-17note the effect of `$' and `~' in configuration file, and how toJason McIntyre
escape them; based on netbsd -r 1.316, pr 42762, from peter pentchev;
2004-12-16if -f installed, don't treat reinstallation as errors.Marc Espie
if the package is installed, report it's there, don't give any conflict message.
2004-12-16better conflict: conflict with partial installations, always conflict withMarc Espie
the package itself, and all potential instances of libraries.
2004-12-16save depend information into cache when package is installed.Marc Espie
2004-12-16both borked.* and partial-* are recognized.Marc Espie
give the right pkg_delete command
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-16default wait time for dead server connection is 300 seconds, not 120.Moritz Jodeit
ok millert@, henning@
2004-12-16Limit the number of addresses used by the 'servers' directive to 8; ok henning@Darren Tucker
2004-12-15Poll unsynchronized servers at the maximum interval and log a message aboutDarren Tucker
them when in debug mode; ok henning@
2004-12-15Factor out interval scaling code; ok henning@Darren Tucker
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-14If polling a server results in an error, drop that server to the maximumDarren Tucker
poll interval; ok henning@
2004-12-14.Xr dbmmanage 1 ,Jason McIntyre
2004-12-14convert to mdoc;Jason McIntyre
2004-12-14- be more consistent when referring to ServerRootJason McIntyre
- document DocumentRoot more explicitly - don't use .Va for everything ok henning@
2004-12-14sync usage() w/ SYNOPSIS and remove some verbosity;Jason McIntyre
ok henning@
2004-12-14convert to mdoc;Jason McIntyre
2004-12-14OBSD sync;Jason McIntyre
2004-12-14rewrite code to cache files internally, to avoid going to disk all theMarc Espie
time. This will allow us to bypass synch() and use this in -n mode, among other things. We could also postpone writing the cache (synching) until the end of the program...
2004-12-14use YFLAGS=Marco Pfatschbacher
ok mcbride@
2004-12-14update (and sort) FILES;Jason McIntyre
ok henning@
2004-12-14sendto() takes socklen_t as an argument; ok henning@Darren Tucker
2004-12-14one more rc.conf -> rc.conf.local;Jason McIntyre
2004-12-14convert to mdoc;Jason McIntyre
2004-12-13pull all the conflict checking code into one single function, makesMarc Espie
things much simpler...
2004-12-13since we store dependencies we looked at, show them in the clue() message,Marc Espie
so that people can try to figure out why the library wasn't found.
2004-12-13fix test for syswrite errors: zero returns are legitimate.Marc Espie
2004-12-13avoid brutal exits from loop.Marc Espie
2004-12-13more references to hier(7), from mickey;Jason McIntyre
2004-12-13Sanity check owner and permissions of privsep directory, like sshd does;Darren Tucker
ok henning@
2004-12-13Check for error status from poll() too; ok henning@Darren Tucker