The NetBSD Project

CVS log for othersrc/bootstrap-pkgsrc/pkg_install/lib/Attic/pkgdb.c

[BACK] Up to [cvs.NetBSD.org] / othersrc / bootstrap-pkgsrc / pkg_install / lib

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.15
Fri Mar 12 13:05:22 2004 UTC (22 years, 8 months ago) by grant
Branches: MAIN
CVS tags: HEAD
FILE REMOVED
Changes since revision 1.14: +2 -2 lines
remove; bootstrap-pkgsrc has been moved to pkgsrc/bootstrap/ now.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Feb 7 11:52:50 2004 UTC (22 years, 9 months ago) by grant
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +0 -0 lines
merge pkg_install-20040207.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Oct 18 09:47:32 2003 UTC (23 years, 1 month ago) by grant
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +0 -0 lines
merge pkg_install-20031018.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Sep 23 14:04:35 2003 UTC (23 years, 1 month ago) by grant
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +0 -0 lines
merge pkg_install-20030923.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Sep 15 04:54:32 2003 UTC (23 years, 2 months ago) by grant
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +88 -67 lines
merge pkg_install-20030914.

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Sep 15 04:49:29 2003 UTC (23 years, 2 months ago) by grant
Branches: TNF
CVS tags: pkg_install-20040207, pkg_install-20031018, pkg_install-20030923, pkg_install-20030914
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +137 -58 lines
import pkg_install-20030914 from pkgsrc.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Mar 17 15:50:11 2003 UTC (23 years, 8 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -2 lines
ifdef HAVE_DBOPEN pkgdb_dump function to unbreak bootstrap-pkgsrc on IRIX

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Mar 16 19:39:56 2003 UTC (23 years, 8 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +20 -30 lines
Sync with main sources:

Date:           Sat Mar 15 20:49:27 UTC 2003
Introduce a pkgdb_dump() function, which dumps the cache file of
(filename, package) pairs.
Modify calling functions to use pkgdb_dump() directly, rather than
sequences of
	pkgdb_open
	{ pkgdb_iter, pkgdb_retrieve }
	pkgdb_close
calls.
Remove the now unnecessary pkgdb_iter function.

Date:           Sat Mar 15 20:50:15 UTC 2003
Bump version string for pkgdb_dump changes.

Date:           Sat Mar 15 20:54:26 UTC 2003
Catch one more place that could result in Current not being set properly
(and thus in the execution of "rm -fr /") if ^C is pressed at the wrong time.

See also PR 19436.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 20 04:30:17 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -2 lines
In pkgdb_remove_pkg, only perform DB functions if HAVE_DBOPEN is defined,
else return EXIT_SUCCESS unconditionally (as in other functions dealing with
db functionality).

This should address problems under Solaris reported by Jonathan Perkin on
tech-pkg.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jan 14 15:18:59 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +39 -4 lines
Synch with latest changes from src (changes by agc, synch ok'd by agc)
----------------------------------------------------------------------

Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).

Bump lib/version.h due to added functionality.


Order the getopt(3) options alphabetically.


Introduce the notion of "preserving" an installed package.

A preserved package may not be deleted by pkg_delete(1) (unless the -f
option is given), and the preserved capability will be carried into
any binary package. pkg_add(1) will also keep the preserved capability
if it was present in the binary package.

The "preserve" capability can be given to a package by using the
PKG_PRESERVE definition in a package Makefile in pkgsrc.

Ride on the recently-bumped lib/version.h for new functionality.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jan 7 16:46:35 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
``On second thought, let's not go to Camelot.  It is a silly place.''

(Make pkdb_open return pkgdbp!=NULL as src's does, and revert previous
patch.  As discussed with agc.)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jan 7 06:39:58 2003 UTC (23 years, 10 months ago) by grant
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -4 lines
whitespace nits.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 7 06:21:00 2003 UTC (23 years, 10 months ago) by grant
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +11 -20 lines
sync with src:
In pkgdb_remove(), use the return value from (*db->del), rather than
explicitly setting and checking errno.

Do some CSE in pkgdb_iter().

Use the db access functions in the proper manner.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jan 6 04:36:37 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -17 lines
Synch with basesrc:
Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and
errx(3).

Plug a memory leak by modifying the signature of
_pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that
buffer and return it.

Add an enumerated type which is used in pkgdb_open() to specify
read-only or read-write mode.

Modify the return value of pkgdb_open() to have a more logical boolean
value.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Oct 28 14:32:28 2002 UTC (24 years ago) by bouyer
Branches: TNF
CVS tags: current20021028
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +0 -17 lines
Import NetBSD-current pkg_install tools as of today.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Oct 8 11:20:05 2002 UTC (24 years, 1 month ago) by agc
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +26 -2 lines
Only access the pkgdb routines if we have the db routines on our system.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Sep 19 10:47:42 2002 UTC (24 years, 2 months ago) by agc
Branches: TNF
CVS tags: pkg_install-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Import the pkg_install sources (previously included in a gzipped tar file).
These sources are from 2002/07/26.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Sep 19 10:47:42 2002 UTC (24 years, 2 months ago) by agc
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>