summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2006-03-13clean-up some name handling:Marc Espie
- package locations always contain a pkgname (except if we don't have it) - complete it on the repository side to grab the right file. - no need to pass pkgname/arch on $location->grabPlist(), since it's already in the location.
2006-03-13repair pkg_add -Marc Espie
2006-03-08propagate stuff to be able to explicitly clean-up repositories.Marc Espie
(we can't use a normal destructor, since this will be called for each fork()ed subprocess).
2006-03-08fix race condition in SCP for real.Marc Espie
We can't control a grand-child death through gzip, so stop spawning grand-children: create two children connected by hand through a pipe, and when we close gzip, explicitly wait for the second child to die as well. This avoids race conditions between sigpipe and sigusr1. (and as usual, the resulting code is easier to follow once you get through the pipe/fork). Thanks theo for the comment. ;-)
2006-03-07do not write partial files out if the PKG_CACHE filesystem overflows.Marc Espie
2006-03-07Fix pkg_copy().Bernd Ahlers
2006-03-07properly zap temporary file.Marc Espie
2006-03-07rendez-vous with subchild through signal USR1.Marc Espie
2006-03-07make pkg_copy be overidable by subclass.Marc Espie
2006-03-07only the grand child can have issuesMarc Espie
2006-03-07special case: repository holds several packages (say, old versions), andMarc Espie
you choose the most recent one, which also happens to be the currently installed version -> then explicitly say no update is needed and proceed.
2006-03-07let scp repositories work. Avoid run-away processes by just having one singleMarc Espie
ssh connection for each repository.
2006-03-07pass the grandchild pid through the pipe, in order to be able to monitor it.Marc Espie
2006-03-06zap object pid when done with it.Marc Espie
2006-03-06actually zap the codeMarc Espie
2006-03-06typoMarc Espie
2006-03-06take some infrequently used code completely out of the way.Marc Espie
2006-03-05avoid running mkfontdir/fc-cache if they don't exist.Marc Espie
2006-03-05SynchMarc Espie
2006-03-05- kill whitespace at eolJason McIntyre
- kill double .Pp
2006-03-04cut down the Locator code into maintainable chunks.Marc Espie
2006-03-04accurate description of script execution.Marc Espie
2006-03-04Spell out normal modes of operation for pkg_add more.Marc Espie
Explain about ambiguities, and expand a bit on interactive mode.
2006-03-04reorganize code a little bit: Update.pm becomes Replace.pm (since it matchesMarc Espie
the -r option), and the find_update code moves to Update.pm, so that it doesn't get parsed if -u is not used. Also make the has_new_sig and uses_old_libs local methods of PackingList, as it is their natural API. Reorg a few more routines so that they can be found by pkg_add and by Update.pm. May need to split off more stuff to avoid parsing everything...
2006-03-04zap more success messages. Keep pid of distant location pipe, just in case.Marc Espie
2006-02-23Let 'pkg_info -P' work with package distribution files and URLs to aBernd Ahlers
package. ok espie@
2006-02-22Fix typo.Bernd Ahlers
2006-02-21detect temporary connection errors, and retry with exponential timeout.Marc Espie
2006-02-21ask question corresponding to -F updatedepends too (commonalize code).Marc Espie
Use key 'update', 'updatedepend' to avoid answering the same question again and again.
2006-02-21add optional 3rd choice [y/N/a] for always, so that this question typeMarc Espie
will always match.
2006-02-16validate() can also take sample files into account.Marc Espie
2006-02-10reset $state->{dir} to the correct value after deleting the replaced package.Marc Espie
Fixes a problem noticed by steven.
2006-02-10Use the ProgressMeter engine to display the update messages. This makesBernd Ahlers
'pkg_add -u' less chatty. (turn on verbose output to restore the old behaviour) Advise the user to re-run 'pkg_add -u' in interactive mode if there are ambiguities. Discussed with steven@ and espie@. Testing and some ideas by steven@, thanks. ok espie@
2006-02-10If the length of the message in OpenBSD::ProgressMeter::message() is shorterBernd Ahlers
than the length of the playfield, fill up the difference with whitespace. Prevents leftover characters from previous message()s. ok espie@
2006-02-09Turn validate_plist() into a real visitor that calls validate() for eachMarc Espie
object in the packing-list. Move some checks earlier, so that update of packages fails before deleting the old package. Add more checks, like verifying that install/deinstall scripts are indeed located on exec'able partitions.
2006-02-09use new interface (*close*)Marc Espie
optimization: store dir into state earlier, so that do_script and other stuff can have access to it.
2006-02-09Add some nice interfaces instead of the hint() argument to close().Marc Espie
This allows the cache to finish properly even in some weird cases like fat packages (calling finish_and_close).
2006-02-07synchMarc Espie
2006-02-07minor independent tweaks:Marc Espie
- make Newuser and Newgroup subclasses of Newauth, so that code can be shared. - add property type() for these, that expands to user/group - add property to SpecialFile() that says whether this is executed on add/delete, so that we can check for noexec fs and error out early on these.
2006-02-07look at noexec as wellMarc Espie
2006-02-07Don't push undef into the todo list. This avoids some perl warnings.Bernd Ahlers
ok espie@
2006-02-06tell user about collision much earlier, so that they do not wonder whatMarc Espie
is taking so long...
2006-01-30Clarify pkg_info -e example; ok espie@Miod Vallat
2006-01-24protect against weird situations where dependencies don't matchMarc Espie
(admittedly, we should recompute them, but that's already better than nothing).
2006-01-17special-case packages that use old-libs: always update them, even if theMarc Espie
signature didn't change.
2006-01-13nitMarc Espie
2006-01-12be way more explicit in pointing people to packages-specs(7)Marc Espie
2006-01-09avoid anything that isn't a library in warning for SHARED_LIBS.Marc Espie
Turn warning into a fatal error.
2006-01-06tweak the descriptions of -r and -u: make the distinctionJason McIntyre
between them a little clearer; ok espie
2005-12-26have pkg_create warn about shared libs which have a version number hardcodedMarc Espie
in the packing-list.