OpenBSD CVS

CVS log for src/usr.sbin/pkg_add/Attic/pkg_info


[BACK] Up to [local] / src / usr.sbin / pkg_add

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.95, Fri Jun 4 13:19:39 2010 UTC (14 years ago) by espie
Branch: MAIN
CVS Tags: HEAD
Changes since 1.94: +1 -1 lines
FILE REMOVED

move code around, so that commands can be used as modules.
pkg becomes the start hub, which does nothing except require the
correct module.
Saner code wrt Add/Delete, and more sharing.

Revision 1.94 / (download) - annotate - [select for diffs], Mon May 10 09:17:55 2010 UTC (14 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.93: +18 -18 lines
Diff to previous 1.93 (colored)

whitespace fixes

Revision 1.93 / (download) - annotate - [select for diffs], Mon Jan 11 10:16:20 2010 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored)

various cleanup, including a fix from Daniel Dickman;
ok espie

Revision 1.92 / (download) - annotate - [select for diffs], Sun Jan 10 21:27:59 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.91: +3 -7 lines
Diff to previous 1.91 (colored)

unify options a bit: use -Dname=value for defines uniformously (e.g., deprecate
-F keyword heavily).

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jan 10 11:59:57 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.90: +28 -7 lines
Diff to previous 1.90 (colored)

trick: I can actually recognize specs easily, so why not allow them without
-e ?

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jan 9 15:10:17 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

zap unused

Revision 1.89 / (download) - annotate - [select for diffs], Sat Jan 9 14:55:53 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.88: +1 -1 lines
Diff to previous 1.88 (colored)

streamline interface

Revision 1.88 / (download) - annotate - [select for diffs], Sat Jan 9 12:01:57 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.87: +1 -1 lines
Diff to previous 1.87 (colored)

fixed version, somehow I forgot that I use parse to do weird things with
PKG_PATH...

Revision 1.87 / (download) - annotate - [select for diffs], Sat Jan 9 11:26:58 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.86: +1 -1 lines
Diff to previous 1.86 (colored)

temporary revert until I figure this out

Revision 1.86 / (download) - annotate - [select for diffs], Sat Jan 9 10:45:32 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.85: +1 -1 lines
Diff to previous 1.85 (colored)

tweak path parsing to handle inst:pkgname and such as well...

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jan 8 17:06:00 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.84: +7 -25 lines
Diff to previous 1.84 (colored)

remove very old -ikr

Revision 1.84 / (download) - annotate - [select for diffs], Tue Jan 5 12:20:47 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.83: +8 -2 lines
Diff to previous 1.83 (colored)

better spec handling: instead of dying, create badspec objects that never
match anything. Add method is_valid (and propagators) to know whether a
spec is valid (to be used in pkg_create in a systematic way).

Revision 1.83 / (download) - annotate - [select for diffs], Sat Jan 2 12:52:18 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.82: +1 -1 lines
Diff to previous 1.82 (colored)

first step in comparing full signatures: make them full objects, with
proper sign/compare interfaces.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Jan 1 16:09:35 2010 UTC (14 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.81: +12 -4 lines
Diff to previous 1.81 (colored)

new method fullpkgpath that accesses the default fullpkgpath.
make use of it, relax pkg_create to allow any of
FULLPKGPATH, PERMIT_PACKAGE_FTP, PERMIT_PACKAGE_CDROM
(store the others as empty).
remove warning in pkg_mklocatedb for newer perl.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Nov 10 11:36:56 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.80: +1 -0 lines
Diff to previous 1.80 (colored)

bad espie: use strict/warnings consistently, and fix two nits and two
actual errors !

Revision 1.80 / (download) - annotate - [select for diffs], Tue Nov 10 10:52:44 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.79: +3 -1 lines
Diff to previous 1.79 (colored)

zap match

Revision 1.79 / (download) - annotate - [select for diffs], Tue Nov 10 10:50:34 2009 UTC (14 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.78: +4 -2 lines
Diff to previous 1.78 (colored)

kill one use of old-style match

Revision 1.78 / (download) - annotate - [select for diffs], Thu Oct 15 10:47:07 2009 UTC (14 years, 7 months ago) by phessler
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

fix typo that prevented `pkg_info -r` from working.

OK espie@

Revision 1.77 / (download) - annotate - [select for diffs], Sun Oct 11 20:09:48 2009 UTC (14 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

-M before -m
new sentence, new line

Revision 1.76 / (download) - annotate - [select for diffs], Sun Oct 11 18:41:21 2009 UTC (14 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.75: +28 -2 lines
Diff to previous 1.75 (colored)

option -m will show only packages tagged as manual installations.
(there are still some kinks in the setting of @option manual-install, so
it's not as accurate as it should be).

Revision 1.75 / (download) - annotate - [select for diffs], Sun Oct 11 18:15:08 2009 UTC (14 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored)

opt_m ? what's that ?

Revision 1.74 / (download) - annotate - [select for diffs], Mon Sep 7 20:39:55 2009 UTC (14 years, 9 months ago) by landry
Branch: MAIN
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored)

Don't print package comment when -q is given, and no other option is
used. This way, pkg_info -q only shows installed pkgnames.. and can
replace `ls /var/db/pkg` in scripts.

ok espie@

Revision 1.73 / (download) - annotate - [select for diffs], Sun Apr 19 14:58:32 2009 UTC (15 years, 1 month ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.72: +5 -6 lines
Diff to previous 1.72 (colored)

synch with my new style search/location changes
It's likely there will be some fallout, but it's getting a bit too large
to keep around.
This does kill a few very old oddities as well.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Apr 14 17:53:58 2009 UTC (15 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.71: +17 -6 lines
Diff to previous 1.71 (colored)

initial implementation of package signatures, based on x509 certificates and
smime detached signatures.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Dec 15 15:56:40 2008 UTC (15 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.70: +1 -1 lines
Diff to previous 1.70 (colored)

tweak the defaults to also do -M if you ask for info on a given package.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Oct 26 16:16:37 2008 UTC (15 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored)

zap old code that was a confusion with -l, and didn't ever do anything
in the new pkg_info
problem noticed by landry@

Revision 1.69 / (download) - annotate - [select for diffs], Mon Oct 20 10:25:16 2008 UTC (15 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Say goodbye to local $_
lexical scoping is so much neater (courtesy of perl 5.10)

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jun 18 12:05:00 2008 UTC (15 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.67: +10 -1 lines
Diff to previous 1.67 (colored)

use path_parse to retrieve pkg_info anywhere

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jun 15 08:24:28 2008 UTC (15 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.66: +24 -16 lines
Diff to previous 1.66 (colored)

tweak the code that finds packages to find distant stems
(todo: match pkg_add code better)

Revision 1.66 / (download) - annotate - [select for diffs], Sat Mar 8 12:07:45 2008 UTC (16 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored)

rename forced to defines

Revision 1.65 / (download) - annotate - [select for diffs], Tue Dec 18 10:58:46 2007 UTC (16 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.64: +11 -5 lines
Diff to previous 1.64 (colored)

make it possible to run without locking the database. To be used by
SRC: url, which require it.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Dec 8 15:54:45 2007 UTC (16 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.63: +2 -1 lines
Diff to previous 1.63 (colored)

let pkg_info -E see @sample objects. No sense in hiding them.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jun 26 19:11:28 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.62: +6 -5 lines
Diff to previous 1.62 (colored)

fix pkg_info's find_by_path behavior, which I accidentally broke two
versions back...

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 20 13:44:39 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.61: +4 -2 lines
Diff to previous 1.61 (colored)

sprinkle code to deal gracefully with absent packing-lists.
makes it easier for people to recover after a disk crash that
leaves /var/db/pkg half-empty.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 17 12:34:02 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.60: +28 -6 lines
Diff to previous 1.60 (colored)

only display header if we actually display some information.
Allows saying pkg_info -a -M, and not having 100s of empty lines
corresponding to all packages without a MESSAGE.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jun 4 18:15:19 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

add -t to usage() and SYNOPSIS;

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jun 4 14:40:39 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

some minor systematic changes.
- 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.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jun 4 11:42:03 2007 UTC (17 years ago) by pyr
Branch: MAIN
Changes since 1.57: +11 -3 lines
Diff to previous 1.57 (colored)

add -t flag to pkg_info to enable listing of the ``top level'' packages,
i.e those who are not a dependency of another package.
useful to show the packages you actually use.

ok espie@

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 18 12:44:32 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

show the url for the package we're dealing with. Unconfuse installed vs.
uninstalled stuff.

Revision 1.56 / (download) - annotate - [select for diffs], Fri May 18 12:28:26 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

normalize installed names

Revision 1.55 / (download) - annotate - [select for diffs], Tue May 15 19:02:26 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.54: +5 -2 lines
Diff to previous 1.54 (colored)

require the right code at the right location.
problem noticed by deanna@

Revision 1.54 / (download) - annotate - [select for diffs], Mon May 14 11:02:14 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.53: +3 -2 lines
Diff to previous 1.53 (colored)

put Search objects into their own file, finally

Revision 1.53 / (download) - annotate - [select for diffs], Mon May 14 10:53:31 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

put search objects into a search class.

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 14 10:43:45 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

name tweaks: match -> match_list, match_repo -> match

Revision 1.51 / (download) - annotate - [select for diffs], Mon May 14 10:27:46 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

use Repository::Installed a bit more

Revision 1.50 / (download) - annotate - [select for diffs], Sun May 13 13:32:36 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

unify object lookup as locator->match($o) or $repo->match($o)

Revision 1.49 / (download) - annotate - [select for diffs], Sat May 12 14:48:45 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

use PkgSpec objects most of the time

Revision 1.48 / (download) - annotate - [select for diffs], Mon May 7 14:29:58 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

use repo->findstem

Revision 1.47 / (download) - annotate - [select for diffs], Mon May 7 14:12:43 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored)

remove dependency on available_stems(), make it go thru PackageLocator

Revision 1.46 / (download) - annotate - [select for diffs], Mon May 7 14:06:38 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.45: +3 -11 lines
Diff to previous 1.45 (colored)

do not expose stemlist internals, create find_partialstem function.

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 2 13:59:19 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.44: +23 -23 lines
Diff to previous 1.44 (colored)

remove extraneous () in method call: $o->method() becomes $o->method

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 1 18:22:20 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.43: +1 -4 lines
Diff to previous 1.43 (colored)

move the old elements into PackingElements, since the code is now
much shorter.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Apr 29 11:09:29 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

replace $p->visit('method') calls with $p->method
now that it works.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Apr 15 10:17:29 2007 UTC (17 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

update copyright years, standardize licence.
reword the introduction to the stuff originally from FreeBSD to clarify
slightly.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jan 29 10:57:36 2007 UTC (17 years, 4 months ago) by bernd
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Three lines in SYNOPSIS are too much. Use only one line and sync usage.

prodded by & ok jmc@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jan 23 11:40:26 2007 UTC (17 years, 4 months ago) by bernd
Branch: MAIN
Changes since 1.39: +26 -5 lines
Diff to previous 1.39 (colored)

Introduce -Q option:

-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@

Revision 1.39 / (download) - annotate - [select for diffs], Thu Feb 23 12:28:22 2006 UTC (18 years, 3 months ago) by bernd
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Let 'pkg_info -P' work with package distribution files and URLs to a
package.

ok espie@

Revision 1.38 / (download) - annotate - [select for diffs], Thu Feb 9 09:40:31 2006 UTC (18 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

use new interface (*close*)
optimization: store dir into state earlier, so that do_script and
other stuff can have access to it.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Nov 1 17:02:29 2005 UTC (18 years, 7 months ago) by bernd
Branch: MAIN
Changes since 1.36: +13 -5 lines
Diff to previous 1.36 (colored)

Add -P option. This shows the pkgpath for each package. Nice for building
subdirlists.

Document new option.

"commit" espie@

Revision 1.36 / (download) - annotate - [select for diffs], Fri Oct 28 20:16:13 2005 UTC (18 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.35: +5 -3 lines
Diff to previous 1.35 (colored)

fix error code path for pkg_info -e pouet

Revision 1.35 / (download) - annotate - [select for diffs], Mon Sep 19 10:16:32 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.34: +40 -104 lines
Diff to previous 1.34 (colored)

simplify pkg_info a great deal, by relying on the lazy properties of
pkghandles to avoid creating directories.

Use PackageRepository::Installed to make code symetric.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Sep 19 09:51:49 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.33: +22 -9 lines
Diff to previous 1.33 (colored)

let pkg_info -e see @pkgpath annotations.
Solves update issues where the pkgpath changed

Revision 1.33 / (download) - annotate - [select for diffs], Sat Sep 17 12:10:52 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.32: +74 -6 lines
Diff to previous 1.32 (colored)

special-case when we only need the packing-list.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Sep 7 09:40:50 2005 UTC (18 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

sort options and sync usage();

Revision 1.31 / (download) - annotate - [select for diffs], Sun Sep 4 22:47:56 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.30: +57 -30 lines
Diff to previous 1.30 (colored)

* New -i interactive option, that can ask obnoxious questions.
* 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.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Aug 16 08:59:38 2005 UTC (18 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

fix getopt line, noticed by Gerardo Santana

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jun 8 09:43:40 2005 UTC (19 years ago) by espie
Branch: MAIN
Changes since 1.28: +23 -4 lines
Diff to previous 1.28 (colored)

squeeze +COMMENT in front of +DESC.
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@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jan 16 11:16:23 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.27: +6 -2 lines
Diff to previous 1.27 (colored)

allow locking of database in quiet mode, where we don't display any
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.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jan 14 02:25:12 2005 UTC (19 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

`big lock' model: lock the whole db for reading/writing.
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.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Dec 22 12:56:25 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.25: +15 -13 lines
Diff to previous 1.25 (colored)

keep less stuff around for -e pkgpath.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 16 11:07:33 2004 UTC (19 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

renamed borked_installation from borked.n to partial-<pkgname> ...
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.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 12 11:26:16 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.23: +30 -31 lines
Diff to previous 1.23 (colored)

add somewhat more regular error catching code.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 6 15:19:11 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored)

forgot -h for pkg_info.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 6 12:35:36 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.21: +13 -6 lines
Diff to previous 1.21 (colored)

Usage

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 15 12:58:48 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.20: +76 -22 lines
Diff to previous 1.20 (colored)

find_pkg function to iterate through pkgs, wherever they might be.
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...

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 15 12:22:59 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.19: +16 -16 lines
Diff to previous 1.19 (colored)

repair -l

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 15 11:23:10 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

don't Fatal out if -e thingy -q, since we're only interested in the
result code.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Nov 14 13:05:02 2004 UTC (19 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.17: +15 -7 lines
Diff to previous 1.17 (colored)

-K -L option that prefixes each file name with keyword.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 11 11:54:09 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

package names starting with .  are hidden from pkg_info by default.
-A shows them.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 11 11:24:15 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

typo

Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 11 11:16:39 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

introduce shortcuts to read/write contents from_installation/to_installation

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.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 10 09:55:43 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.13: +41 -5 lines
Diff to previous 1.13 (colored)

use ExtraInfo, finally: allows pkg_info to report packages according to
PKGPATH, e.g., pkg_info -e x11/kde/base3 will tell you which version
(if any) of kdebase is installed.

Necessary for achieving updates.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 10 09:41:16 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.12: +27 -10 lines
Diff to previous 1.12 (colored)

resurrect -e, document that it uses packages-specs now.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 9 11:16:53 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.11: +11 -3 lines
Diff to previous 1.11 (colored)

-s seamless with other options: let it work with -a, let it be on for -v.
Count totalsize, and display it at end if > 1 package.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 9 10:46:57 2004 UTC (19 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.10: +17 -6 lines
Diff to previous 1.10 (colored)

-s option, grange's request.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Oct 11 10:30:33 2004 UTC (19 years, 8 months ago) by espie
Branch: MAIN
Changes since 1.9: +17 -7 lines
Diff to previous 1.9 (colored)

add support for undisplay file, to be able to show information at pkg
removal without having to run a DEINSTALL script...

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 12 10:35:06 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.8: +20 -22 lines
Diff to previous 1.8 (colored)

ditch File::Copy so that buffering is consistent.
Problem noticed by niklas@.
okay and function name suggestion by markus@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 6 08:17:40 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

unneeded switch to main package.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 6 08:14:52 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.6: +22 -9 lines
Diff to previous 1.6 (colored)

avoid pulling in OpenBSD::md5 and File::Copy if we can.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 6 08:06:01 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.5: +6 -18 lines
Diff to previous 1.5 (colored)

block-scoped require is way simpler than weird AUTOLOAD hack.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 6 07:51:17 2004 UTC (19 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.4: +14 -23 lines
Diff to previous 1.4 (colored)

unified headers, switch to smaller copyright notice.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 21 16:33:45 2004 UTC (19 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

support for old stuff in pkg_info/pkg_delete, e.g., @src
prompted by miod@, okay miod@ millert@.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 23 17:48:07 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.2: +64 -55 lines
Diff to previous 1.2 (colored)

missing space in DEINSTALL message.
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@

Revision 1.2 / (download) - annotate - [select for diffs], Sun Oct 19 18:40:11 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.1: +14 -1 lines
Diff to previous 1.1 (colored)

Add is_stem, findstem and use them in pkg_info.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Oct 16 17:43:34 2003 UTC (20 years, 7 months ago) by espie
Branch: espie
CVS Tags: pkgtools
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

new import of my pkgtools, after a slight naming disagreement with the
Upper Management...

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 16 17:43:34 2003 UTC (20 years, 7 months ago) by espie
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.