OpenBSD CVS

CVS log for src/usr.sbin/pkg_add/pkg_mklocatedb


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.48 / (download) - annotate - [select for diffs], Mon May 29 07:35:39 2023 UTC (12 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.47: +20 -40 lines
Diff to previous 1.47 (colored)

use v5.36, this one is somewhat trivial

Revision 1.47 / (download) - annotate - [select for diffs], Tue May 4 08:41:03 2021 UTC (3 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

and do the same thing to pkg_mklocatedb

Revision 1.46 / (download) - annotate - [select for diffs], Tue Sep 11 09:43:08 2018 UTC (5 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.45: +13 -1 lines
Diff to previous 1.45 (colored)

add the conflict info to what's stored in pkglocatedb, as it's meta-info
that's not readily available otherwise.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jul 11 09:57:59 2018 UTC (5 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

allow default from state

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jun 25 17:00:46 2018 UTC (5 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.43: +17 -1 lines
Diff to previous 1.43 (colored)

so tags need some love to print out correctly

Revision 1.43 / (download) - annotate - [select for diffs], Sun Jul 13 15:54:28 2014 UTC (9 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.42: +3 -88 lines
Diff to previous 1.42 (colored)

stuff no longer needed, now that base/x release install its own locate dbs

Revision 1.42 / (download) - annotate - [select for diffs], Mon Apr 14 20:40:41 2014 UTC (10 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.41: +48 -71 lines
Diff to previous 1.41 (colored)

switch to using common SetList code (this fixes the xfont sets btw)
rename -x into -X, as -x is commonly "no progress meter". Even though this
doesn't apply to pkg_mklocatedb, this applies to pkg_check.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Mar 18 18:53:29 2014 UTC (10 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.40: +1 -2 lines
Diff to previous 1.40 (colored)

remove $_ usage that warns under perl 5.18

Revision 1.40 / (download) - annotate - [select for diffs], Sun Mar 9 09:55:10 2014 UTC (10 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.39: +6 -2 lines
Diff to previous 1.39 (colored)

record errors, and only crash at the end. much less painful to synch
sets this way...

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 27 11:39:22 2013 UTC (11 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.38: +47 -12 lines
Diff to previous 1.38 (colored)

add a -u option to make it possible to build on an existing database

Revision 1.38 / (download) - annotate - [select for diffs], Mon May 28 10:14:33 2012 UTC (12 years ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.37: +13 -6 lines
Diff to previous 1.37 (colored)

I'm an idiot, make sure we call the right routines every time

Revision 1.37 / (download) - annotate - [select for diffs], Sat May 26 10:27:06 2012 UTC (12 years ago) by espie
Branch: MAIN
Changes since 1.36: +9 -7 lines
Diff to previous 1.36 (colored)

fix class hierarchy errors: print all Action (includes @newuser, @newgroup,
@sysctl), but only use {expanded} for exec-like actions.

2 passes over plists: one to set header, 2nd one to build the list.
slightly cleaner

Revision 1.36 / (download) - annotate - [select for diffs], Wed May 23 09:52:55 2012 UTC (12 years ago) by espie
Branch: MAIN
Changes since 1.35: +16 -2 lines
Diff to previous 1.35 (colored)

also record expanded @exec-like actions and @newauth...

Revision 1.35 / (download) - annotate - [select for diffs], Fri May 18 12:13:37 2012 UTC (12 years ago) by espie
Branch: MAIN
Changes since 1.34: +12 -2 lines
Diff to previous 1.34 (colored)

just warn if files from the *etc sets are missing. This will remind
people to run sysmerge, and is generally not a good hint things are out
of synch.

prompted by naddy@ and sthen@

Revision 1.34 / (download) - annotate - [select for diffs], Tue May 8 10:54:43 2012 UTC (12 years ago) by espie
Branch: MAIN
Changes since 1.33: +12 -3 lines
Diff to previous 1.33 (colored)

add an extra check to avoid out-of-synch

Revision 1.33 / (download) - annotate - [select for diffs], Sun Apr 29 08:46:02 2012 UTC (12 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored)

repair src/xsrc handling
fix it wrt FLAVOR/SUBPACKAGE passing

Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 22 11:57:18 2012 UTC (12 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

typo

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 22 11:38:54 2012 UTC (12 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.30: +7 -1 lines
Diff to previous 1.30 (colored)

write a specialized version that appends a / to directories, to make it
easier to see them in pkg_locate results.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 10 08:46:37 2011 UTC (12 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored)

let pkg_mklocatedb work consistently with SUBDIRLIST (print only the
fullpkgpaths referenced there and nothing more)

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jul 28 12:19:54 2010 UTC (13 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.28: +138 -82 lines
Diff to previous 1.28 (colored)

pass state to Ustar objects, use it to display those pesky error and
fatal messages.

zap $opt_x from pkg_mklocated, do things like other commands do.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 30 11:33:57 2010 UTC (13 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.27: +22 -17 lines
Diff to previous 1.27 (colored)

use newer code

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 24 17:21:44 2010 UTC (13 years, 11 months ago) by sthen
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Include files annotated @bin in the database produced by pkg_mklocatedb;
reported by Antti Harri who gave a very good tip helping analysis, thanks!
ok espie@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 9 11:57:21 2010 UTC (13 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.25: +2 -6 lines
Diff to previous 1.25 (colored)

common pattern reuse

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 9 10:58:01 2010 UTC (13 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.24: +5 -3 lines
Diff to previous 1.24 (colored)

use State usage, so that I can get rid of duplicate code...

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

whitespace fixes

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 11 12:20:45 2010 UTC (14 years, 4 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

protect gzip against weird file names

Revision 1.22 / (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.21: +4 -3 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Tue Nov 10 11:36:56 2009 UTC (14 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.20: +2 -0 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 20 10:25:16 2008 UTC (15 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.19: +1 -1 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 10 04:35:31 2008 UTC (15 years, 7 months ago) by steven
Branch: MAIN
Changes since 1.18: +1 -0 lines
Diff to previous 1.18 (colored)

add rcs tags

ok espie

Revision 1.18 / (download) - annotate - [select for diffs], Fri May 16 22:01:27 2008 UTC (16 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored)

- sort usage()
- use .Bk/.Ek to avoid ugly SYNOPSIS split

Revision 1.17 / (download) - annotate - [select for diffs], Fri May 16 18:29:18 2008 UTC (16 years ago) by espie
Branch: MAIN
Changes since 1.16: +14 -4 lines
Diff to previous 1.16 (colored)

add a -d repository option in order not to have to specify all pkgnames.

as noticed by naddy and ajacoutot, we now have enough packages that this
stresses shell limits if we specify everything on the command line. ;-)

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 20 13:44:39 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.15: +1 -0 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Sat Jun 16 09:29:37 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.14: +5 -3 lines
Diff to previous 1.14 (colored)

use OpenBSD::Paths contents

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 4 14:57:33 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

I am on drugs, I don't know where I found split can take strings as
arguments. Repair...

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 4 14:40:39 2007 UTC (17 years ago) by espie
Branch: MAIN
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (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.12 / (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.11: +3 -3 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (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.10: +1 -1 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 1 20:56:23 2007 UTC (17 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

sync usage();

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 1 18:20:59 2007 UTC (17 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.8: +9 -5 lines
Diff to previous 1.8 (colored)

commit really old stuff that lets pkg_mklocatedb record
pkgpath/pkgnames/both.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 12 16:21:28 2006 UTC (17 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.7: +17 -2 lines
Diff to previous 1.7 (colored)

completely uniform setup

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 12 16:18:27 2006 UTC (17 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

print stuff to the correct file handle

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 11 16:20:10 2006 UTC (17 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

simpler/better progress print

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 11 16:13:43 2006 UTC (17 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.4: +39 -8 lines
Diff to previous 1.4 (colored)

-P option: prepend pkgpath instead of pkgname.
-p option: use the continuation code from OpenBSD::PackingList in a sneaky
way, so that we can read all packing-list contents in one go from a
make print-plist-contents in /usr/ports.

Allows building a located database from the ports tree without needing to
build any packages.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 13 20:54:38 2005 UTC (18 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.3: +2 -6 lines
Diff to previous 1.3 (colored)

use grabPlist, avoid getting anything else.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Sep 7 14:01:59 2005 UTC (18 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

use `pkg-name' rather than `pkgname' here, for consistency with other
pkg_* bits;

ok espie@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 3 11:52:15 2005 UTC (19 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.1: +56 -3 lines
Diff to previous 1.1 (colored)

allow pkg_mklocatedb to look into src and X11 sets as well.
`no objection' naddy@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 15 09:13:05 2005 UTC (19 years, 3 months ago) by espie
Branch: MAIN

New command: pkg_mklocatedb, that can be used to create locate(1)-style
databases for packages (duh, isn't that obvious from the name ?)

Tweaks based on comments from naddy/jmc.

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.