summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg_info
AgeCommit message (Collapse)Author
2007-06-26fix pkg_info's find_by_path behavior, which I accidentally broke twoMarc Espie
versions back...
2007-06-20sprinkle code to deal gracefully with absent packing-lists.Marc Espie
makes it easier for people to recover after a disk crash that leaves /var/db/pkg half-empty.
2007-06-17only display header if we actually display some information.Marc Espie
Allows saying pkg_info -a -M, and not having 100s of empty lines corresponding to all packages without a MESSAGE.
2007-06-04add -t to usage() and SYNOPSIS;Jason McIntyre
2007-06-04some minor systematic changes.Marc Espie
- mark all regexps I can with /o if they can be compiled once. - turn $o->method() into $o->method - remove unneeded prototypes - reduce split /re/ into split "string" where possible.
2007-06-04add -t flag to pkg_info to enable listing of the ``top level'' packages,Pierre-Yves Ritschard
i.e those who are not a dependency of another package. useful to show the packages you actually use. ok espie@
2007-05-18show the url for the package we're dealing with. Unconfuse installed vs.Marc Espie
uninstalled stuff.
2007-05-18normalize installed namesMarc Espie
2007-05-15require the right code at the right location.Marc Espie
problem noticed by deanna@
2007-05-14put Search objects into their own file, finallyMarc Espie
2007-05-14put search objects into a search class.Marc Espie
2007-05-14name tweaks: match -> match_list, match_repo -> matchMarc Espie
2007-05-14use Repository::Installed a bit moreMarc Espie
2007-05-13unify object lookup as locator->match($o) or $repo->match($o)Marc Espie
2007-05-12use PkgSpec objects most of the timeMarc Espie
2007-05-07use repo->findstemMarc Espie
2007-05-07remove dependency on available_stems(), make it go thru PackageLocatorMarc Espie
2007-05-07do not expose stemlist internals, create find_partialstem function.Marc Espie
2007-05-02remove extraneous () in method call: $o->method() becomes $o->methodMarc Espie
2007-05-01move the old elements into PackingElements, since the code is nowMarc Espie
much shorter.
2007-04-29replace $p->visit('method') calls with $p->methodMarc Espie
now that it works.
2007-04-15update copyright years, standardize licence.Marc Espie
reword the introduction to the stuff originally from FreeBSD to clarify slightly.
2007-01-29Three lines in SYNOPSIS are too much. Use only one line and sync usage.Bernd Ahlers
prodded by & ok jmc@
2007-01-23Introduce -Q option:Bernd Ahlers
-Q query Show all packages in $PKG_PATH which match the given query. Example: $ pkg_info -Q bogofilter bogofilter-1.0.3-qdbm (installed) bogofilter-1.0.3-db4 bogofilter-1.0.3-sqlite3 bogofilter-1.0.3 $ Manpage help from sturm@. ok sturm@, steven@, espie@
2006-02-23Let 'pkg_info -P' work with package distribution files and URLs to aBernd Ahlers
package. ok espie@
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.
2005-11-01Add -P option. This shows the pkgpath for each package. Nice for buildingBernd Ahlers
subdirlists. Document new option. "commit" espie@
2005-10-28fix error code path for pkg_info -e pouetMarc Espie
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.