summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2004-01-01post-INSTALL script falling -> record installation as a borked packageMarc Espie
instead of aborting outright with loads of files unregistered...
2003-12-26Allow storing of `arch' annotations inside packages.Marc Espie
Factor common method code in write, keep variations in stringize.
2003-12-26pkg_add reports size taken on each fs.Marc Espie
Reorg and clean Vstat a bit. okay naddy@
2003-12-24Handle mount entries without options.Marc Espie
Found and tested by our ubiquitous afs user, Bob Beck.
2003-12-21Add virtual file system, so that pkg_add and pkg_delete can check forMarc Espie
read-only status, or size concerns, before even beginning to add/remove files. Allows pkg_add -n and pkg_delete -n to be more thorough as well. Some testing by Todd Millert, comments by Greg Steuck and Sam Smith.
2003-12-19Clean up PackageLocator so it looks somewhat more object-oriented.Marc Espie
Most importantly, put all the state information into the created object, so that the actual archive can be closed, later reopened, and scanned until the correct file is found. This will be used to allow retrieving packages through ftp without keeping loads of connections opened because of dependency resolving. Approved by fries and naddy.
2003-12-11NOMAN building works, fix NOMAN installation.Marc Espie
Noticed by jmc@
2003-12-10stamp files and directories.Marc Espie
okay sturm@
2003-12-10Flag unresolved package names as errors.Marc Espie
Help resolution by stripping away .tgz.
2003-12-10Replace Adding/Deleting with "Pretending to add/delete" in -n mode.Marc Espie
Pick up DISPLAY from staging area, so that it gets found even if -n.
2003-12-09better management of list of installed packages. Allow pkg_add/delete -nMarc Espie
to proceed correctly in case of dependencies.
2003-12-09Spell out which dependencies are getting solved so that pkg_add outputMarc Espie
is less confusing.
2003-12-09Fix logic for error handling, especially if -n is specified.Marc Espie
2003-11-22more packing-lists sanity checks:Marc Espie
- multiple dirrm - symlinks that point inside the fake area
2003-11-16Record no checksum in generated packing-list.Marc Espie
Thx to sturm@ for finding out something was wrong.
2003-11-14finicky, finicky...Marc Espie
2003-11-14synch doc with realityMarc Espie
2003-11-10Fine-grained handling of errors, pkg already installed is not an error.Marc Espie
2003-11-09count errors while installing packages, and exit(1) if errors.Marc Espie
2003-11-09fix semantics to match old tools. This prefix is what was passed onMarc Espie
the command line, not the first cwd in the archive, sorry. No way to override this currently. To be safe, - packages would need to be built with a specific base. - packages would need to be installed with the same base. Somewhat the same semantic difference as with LOCALBASE/PREFIX.
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-11-06handle +DISPLAYMarc Espie
2003-11-06set env PKG_PREFIX for compatibility with old tools.Marc Espie
2003-11-06Tell people to set PKG_PATH for pkg_add - to handle dependencies.Marc Espie
2003-11-06... pkg_add obviously much happier with borked_package...Marc Espie
2003-11-06verify libspec fully again (same code as old pkg add-on, mostly).Marc Espie
This ends the current batch of updates. Much thanks to sturm@ for testing and comments.
2003-11-06Split off dependency solving into its own function.Marc Espie
pkg without dependencies is not a special case, it will simply end up with an empty solved dependency list. Try harder to resolve dependencies without resorting to default, use other arguments on the command line first. This makes it possible to have pkg_add * run for the CD even if the CD doesn't contain only default packages as long as the packages satisfy the dependencies.
2003-11-06do not try to run the post-install script on an aborted pkg_add.Marc Espie
2003-11-06split out the registration process, and add a ^C handler, to thatMarc Espie
half-installed packages register in a sensible way.
2003-11-06Handle pkg_add -Marc Espie
let pkg_add postpone conflict handling until it has the real name of the package if necessary, and let PackageLocator deal correctly with a '-' filename.
2003-11-06Allow the use of full paths to refer to installed packages, so thatMarc Espie
pkg_delete /var/db/pkg/zsh-*/ works.
2003-11-06url2pkgname as an explicit functionMarc Espie
2003-11-06Implement discovery of a `packing-list' prefix, e.g., the first @cwdMarc Espie
present in the packing-list (necessary for libdepends checking).
2003-11-04make pkg_create aware of duplicate files in plist, which are a bad thing.Marc Espie
okay sturm@
2003-11-04let pkg_delete use logging facilities to save issues with deleting filesMarc Espie
(mostly md5 problems for now) okay sturm@
2003-11-04Add logging facilities (temp module exposes its temporary directory)Marc Espie
2003-11-03canonpath strips ending /, rely on unstripped name for @extra.Marc Espie
found out by naddy@
2003-11-03fix logic wrt pkgstems and dependencies.Marc Espie
ok sturm@
2003-10-31put pkgpath back in correct order.Marc Espie
automatically append package location specified on the command line to pkgpath (reported by numerous people). okay sturm@
2003-10-31upward compatible change: let md5 register as @md5 (still grok @comment MD5Marc Espie
though), and add @size to denote file sizes in created package. okay naddy@
2003-10-31Fix typo (ouch) and logic order (chown before chmod)Marc Espie
Still a very good idea to mark setXid and special owners in packing-lists (as make update-plist does anyways...)
2003-10-28let pkg_delete evaluate dependencies earlier: check that all packagesMarc Espie
that the user wants removed are actually a complete set with respect to dependencies. Otherwise, report a list of packages that would have to be removed as well for this pkg_delete to work, and stop right there. okay naddy@
2003-10-28oopsMarc Espie
2003-10-28zapMarc Espie
2003-10-28OpenBSD-specific Makefile. We keep Makefile.PL around for portability toMarc Espie
other OSes. A bit more maintenance, since each module will need to be added, but there are too many fun things that can happen with depend/clean/whatever. Should please that Theo guy who sometimes sends me spam. okay millert@
2003-10-27extra block around do while loop.Marc Espie
perl quick: this is needed for last to work. Found out by sturm@
2003-10-26cosmetic change, people read preadd as p_read_d, so make it explicit:Marc Espie
preadd -> pre_add reallyadd -> really_add
2003-10-26Partial synch with reality, ok sturm.Marc Espie
2003-10-23Allows close() on already closed locator.Marc Espie
Fix second problem seen by krw@
2003-10-23Typo. Fix removal for multiple times the same dependency.Marc Espie