summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_info
AgeCommit message (Collapse)Author
2005-09-19simplify pkg_info a great deal, by relying on the lazy properties ofMarc Espie
pkghandles to avoid creating directories. Use PackageRepository::Installed to make code symetric.
2005-09-19let pkg_info -e see @pkgpath annotations.Marc Espie
Solves update issues where the pkgpath changed
2005-09-17special-case when we only need the packing-list.Marc Espie
2005-09-07sort options and sync usage();Jason McIntyre
2005-09-04* New -i interactive option, that can ask obnoxious questions.Marc Espie
* move the signature code to a packing-list method, prepend the pkgname. * depend on distant listings, cache these systematically. * cut the PKG_PATH at :/ systematically, much simpler than parsing URLs. People should get used to trailing /s. * let pkg_add -u actually run the update. * check for signature in more places, for instance, let pkg_add installed_stuff be a void operation. * grab enough stuff during updates to check signatures, so that pkg_add -u can report updates that are not needed right away, instead of waiting for the more confusing `trying to update' * beginning of @module support. * @pkgpath support, including updates. * systematically expand stems when applicable. * use visitors systematically in pkg_info. * pkg_info -S reports signature. * remove hardcoding of categories in PackingList, so that future modules will be able to expand them. * add @updateset and @incompatibility keywords.
2005-08-16fix getopt line, noticed by Gerardo SantanaMarc Espie
2005-06-08squeeze +COMMENT in front of +DESC.Marc Espie
Transparently handle both package types, until everyone has transitionned to new style. Reasons for the change: - comment and desc are never written independently - access to comment necessitates a file read anyways. - shaves one inode and (mostly) one block from each installed package. Since this is /var, and there is often a lot of stuff going on in a small partition, this helps. Done after griping from tedu@, okay'd pval@
2005-01-16allow locking of database in quiet mode, where we don't display anyMarc Espie
message. Display the lock message on stderr anyways, so that we don't disturb normal displays. postpone locking after we know about -q in pkg_info's case. Display command line if pkg_create fails, so that we can see what arguments it found in bsd.port.mk.
2005-01-14`big lock' model: lock the whole db for reading/writing.Marc Espie
design checked with millert@, relying on process termination for unlock at his suggestion. Perf optimization: don't try to reinstall installed packages in kitchensink mode if !-r.
2004-12-22keep less stuff around for -e pkgpath.Marc Espie
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-12add somewhat more regular error catching code.Marc Espie
2004-12-06forgot -h for pkg_info.Marc Espie
2004-12-06UsageMarc Espie
2004-11-15find_pkg function to iterate through pkgs, wherever they might be.Marc Espie
New -E filename option that looks for a filename through specified packages (or installed packages if no packages specified). Can be very, very slow, since it scans all packing-lists, but at least it works...
2004-11-15repair -lMarc Espie
2004-11-15don't Fatal out if -e thingy -q, since we're only interested in theMarc Espie
result code.
2004-11-14-K -L option that prefixes each file name with keyword.Marc Espie
2004-11-11package names starting with . are hidden from pkg_info by default.Marc Espie
-A shows them.
2004-11-11typoMarc Espie
2004-11-11introduce shortcuts to read/write contents from_installation/to_installationMarc Espie
use these to simplify all those packing lists manipulations. demote non-root detection to a warning in -n mode: fix a couple of minor bugs, of stuff that was run in -n mode and should not. Namely, manpages were indexed/unindexed (ouch) and tempfiles were creating during updates.
2004-11-10use ExtraInfo, finally: allows pkg_info to report packages according toMarc Espie
PKGPATH, e.g., pkg_info -e x11/kde/base3 will tell you which version (if any) of kdebase is installed. Necessary for achieving updates.
2004-11-10resurrect -e, document that it uses packages-specs now.Marc Espie
2004-11-09-s seamless with other options: let it work with -a, let it be on for -v.Marc Espie
Count totalsize, and display it at end if > 1 package.
2004-11-09-s option, grange's request.Marc Espie
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-08-12ditch File::Copy so that buffering is consistent.Marc Espie
Problem noticed by niklas@. okay and function name suggestion by markus@
2004-08-06unneeded switch to main package.Marc Espie
2004-08-06avoid pulling in OpenBSD::md5 and File::Copy if we can.Marc Espie
2004-08-06block-scoped require is way simpler than weird AUTOLOAD hack.Marc Espie
2004-08-06unified headers, switch to smaller copyright notice.Marc Espie
2004-06-21support for old stuff in pkg_info/pkg_delete, e.g., @srcMarc Espie
prompted by miod@, okay miod@ millert@.
2003-10-23missing space in DEINSTALL message.Marc Espie
allow pkg_delete stem to work, unless ambiguous. put all pkg_info's work into a single function, so that pkg_info autoconf will work. ok fries@ sturm@
2003-10-19Add is_stem, findstem and use them in pkg_info.Marc Espie
2003-10-16new import of my pkgtools, after a slight naming disagreement with theMarc Espie
Upper Management...