summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
AgeCommit message (Collapse)Author
2006-12-16ltlib marker for libtool convenience library.Marc Espie
Long-term, we want to be able to build stuff without installing dependencies `for real', and pkgconfig and libtool files keep getting in the way, so pkg_* will have to take control, sooner or later...
2006-12-05use lstat for symbolic links; fixes uninitialized uid/gid.Steven Mestdagh
ok espie@
2006-12-04add rcompress methodMarc Espie
2006-12-02allows us to mark *.pc files as PkgConfig.Marc Espie
This will be useful for some `normalization' work (remove ports directory, and replace /usr/local with DEPBASE or some such, so that building without installation works).
2006-12-01handles continuation lines and comments.Marc Espie
2006-12-01Fixes parsing of variables/delimiters, so that we classify like pkgconfig.Marc Espie
Augment the Requires parser to deal correctly with comparisons.
2006-11-30apply some normalization to some properties while reading or writing,Marc Espie
for instance, parse Requirements correctly, and simplify Libs before writing. We normalize Libs before writing because it's more efficient.
2006-11-30some *.pc files have variable= value, with a space.Marc Espie
2006-11-30adjust (C), noticed by matthieu.Marc Espie
Note that this lives here because pkg_create is going to use it to normalize *.pc files at some point...
2006-11-29add compress_list, allows for empty lines consisting of spaces...Marc Espie
2006-11-29let compress filter out stuff, add method add_bases, make sure write_fhMarc Espie
writes to fh.
2006-11-29handle pkg-config files.Marc Espie
2006-11-17don't return undef, use plain return.Marc Espie
(return undef is only false in a scalar context) found my perlcritic, one of the few issues I agree with...
2006-11-17Handle EOF in interactive mode. Report and initial diff from Antti HarriBernd Ahlers
via tech@. Thanks! ok espie@
2006-10-18symlinks marked @extra need special care for deletionNikolay Sturm
ok bernd, espie
2006-10-17add proper version handling, not really used yet.Marc Espie
2006-09-16fix error message parsing, okay deraadt@Marc Espie
2006-08-11typo in commentBernd Ahlers
2006-08-05actually perform error-checking on every read/write.Marc Espie
2006-07-31cosmetic: comments, and better method name.Marc Espie
2006-07-31add missing licence info.Marc Espie
use strict/warning where applicable, and fix relevant warnings.
2006-05-26make pkg_add exit gracefully if it cannot read from a file handle, whichSteven Mestdagh
happens when the ssh connection could not be established. ok espie@
2006-05-04more clues for people who update their system.Marc Espie
2006-04-22Pass over the right object to OpenBSD::Delete::validate_plist().Bernd Ahlers
This fixes an error while checking for collision with old libs. okay espie@
2006-04-08Add missing 'use OpenBSD::Error'.Bernd Ahlers
spotted by marco@ 'go ahead' espie@
2006-03-21fix endless loop in case of error in archive header.Marc Espie
2006-03-19Partial revert of previous changes, nasty regexps not greedy the way they ↵Marc Espie
should. Broke md5.
2006-03-17un-special case old constructs: make them inherit from the same class,Marc Espie
and remove any special code from Factory. As it's simpler remove local variables.
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-04cut down the Locator code into maintainable chunks.Marc Espie
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-21detect temporary connection errors, and retry with exponential timeout.Marc Espie