CVS log for pkgsrc/pkgtools/pkg_install/files/admin/main.c
Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / admin
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Feb 18 12:04:31 2025 UTC (20 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base,
pkgsrc-2026Q3,
pkgsrc-2026Q2-base,
pkgsrc-2026Q2,
pkgsrc-2026Q1-base,
pkgsrc-2026Q1,
pkgsrc-2025Q4-base,
pkgsrc-2025Q4,
pkgsrc-2025Q3-base,
pkgsrc-2025Q3,
pkgsrc-2025Q2-base,
pkgsrc-2025Q2,
pkgsrc-2025Q1-base,
pkgsrc-2025Q1,
HEAD
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -4
lines
pkg_install: Improve "pkg_admin check" output.
From Jonathan Perkin <jperkin@smartos.org>
via drecklypkg commit $593bfda6864a76d5e8eb4774c27d9babee38d425
Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Mar 7 12:25:43 2024 UTC (2 years, 8 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base,
pkgsrc-2024Q4,
pkgsrc-2024Q3-base,
pkgsrc-2024Q3,
pkgsrc-2024Q2-base,
pkgsrc-2024Q2,
pkgsrc-2024Q1-base,
pkgsrc-2024Q1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +21 -17
lines
pkg_install: Respect quiet flag for rebuild commands.
While here remove a bunch of trailing whitespace.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Mar 7 12:22:47 2024 UTC (2 years, 8 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +59 -3
lines
pkg_install: Add sanity checks for pkgdb correctness.
A number of users have hit "Conflicting PLIST" errors in the past that are
almost certainly caused by duplicate PKGBASE entries in the pkgdb, most likely
as a result of unpacking a bootstrap kit over the top of an existing install.
This adds a check to ensure there are no duplicate PKGBASE entries, displaying
an error message with the list of duplicates if they are found, and is called
for the "check", "rebuild", and "rebuild-tree" commands.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Dec 2 10:45:47 2020 UTC (5 years, 11 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base,
pkgsrc-2023Q4,
pkgsrc-2023Q3-base,
pkgsrc-2023Q3,
pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4,
pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1,
pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +6 -2
lines
pkg_install: Merge some changes from NetBSD src/
No effective change intended, just ifdefs for bootstrapping.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Jul 1 10:03:20 2020 UTC (6 years, 4 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base,
pkgsrc-2020Q3
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +127 -23
lines
pkg_install: Fix and speed up "pkg_admin rebuild-tree".
In the pkg_admin front end, instead of adding +REQUIRED_BY entries as they
are found, which previously led to duplicate entries, cache the results and
write out the files at the end.
Underneath, add a caching version of iterate_pkg_db() that avoids the same
pkgdb directory lookup for every installed package, but is only suitable for
reads. Also add a cache for best_match lookups to avoid expensive matches
each time.
For all caches, use a simple hashing function to improve lookup performance.
In summary, as well as fixing +REQUIRED_BY files, these patches reduce the
wall/user/system time of "pkg_admin rebuild-tree" on a system with 12,762
packages installed down from 13m52s/11m20s/2m32s to just 1m4s/1m3s/0m1s.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Oct 11 11:57:41 2019 UTC (7 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
pkgsrc-2020Q1-base,
pkgsrc-2020Q1,
pkgsrc-2019Q4-base,
pkgsrc-2019Q4
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +28 -3
lines
pkg_install-20191008: Add pkg_admin digest command
Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Feb 26 23:45:02 2018 UTC (8 years, 8 months ago) by ginsbach
Branches: MAIN
CVS tags: pkgsrc-2019Q3-base,
pkgsrc-2019Q3,
pkgsrc-2019Q2-base,
pkgsrc-2019Q2,
pkgsrc-2019Q1-base,
pkgsrc-2019Q1,
pkgsrc-2018Q4-base,
pkgsrc-2018Q4,
pkgsrc-2018Q3-base,
pkgsrc-2018Q3,
pkgsrc-2018Q2-base,
pkgsrc-2018Q2,
pkgsrc-2018Q1-base,
pkgsrc-2018Q1
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -5
lines
pkg_install-20180226:
- add option to include IGNORE_URL pkg_install.conf entries in audit
but flagged as "ignored".
- bump version to 20180226
Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed Apr 19 21:42:50 2017 UTC (9 years, 6 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2017Q4-base,
pkgsrc-2017Q4,
pkgsrc-2017Q3-base,
pkgsrc-2017Q3,
pkgsrc-2017Q2-base,
pkgsrc-2017Q2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +4 -4
lines
pkg_install-20170419:
- Convert to libarchive 3.x interfaces, avoiding the legacy glue.
- Rename local copy of netpgpverify to match installed headers.
- Shuffle bootstrap code to reduce special cases in pkg_add.
- Always read/write file names in tar archives as binary. While they are
supposed to be UTF-8, locale conversion creates more problems than it
solves here.
- Fix const correctness in gpg_verify.
- Add format string annotation for xasprintf for GCC-like compilers.
- Restrict supported archive formats for binary packages to ar (signed
packages) and tar (actual content) with uncompressed/gzip/bzip2/xz as
compression choices. This reduces the exposed libarchive surface.
- The pkg-vulnerability file correspondingly supports only the same
compression choices.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Jan 2 14:26:16 2015 UTC (11 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base,
pkgsrc-2017Q1,
pkgsrc-2016Q4-base,
pkgsrc-2016Q4,
pkgsrc-2016Q3-base,
pkgsrc-2016Q3,
pkgsrc-2016Q2-base,
pkgsrc-2016Q2,
pkgsrc-2016Q1-base,
pkgsrc-2016Q1,
pkgsrc-2015Q4-base,
pkgsrc-2015Q4,
pkgsrc-2015Q3-base,
pkgsrc-2015Q3,
pkgsrc-2015Q2-base,
pkgsrc-2015Q2,
pkgsrc-2015Q1-base,
pkgsrc-2015Q1
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +12 -2
lines
Restore pkg_admin 'add' command; it's still used by bootstrap in one place.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Dec 30 15:13:20 2014 UTC (11 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -28
lines
Remove pkg_views support, second part: infrastructure.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Aug 3 11:45:14 2013 UTC (13 years, 3 months ago) by obache
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base,
pkgsrc-2014Q4,
pkgsrc-2014Q3-base,
pkgsrc-2014Q3,
pkgsrc-2014Q2-base,
pkgsrc-2014Q2,
pkgsrc-2014Q1-base,
pkgsrc-2014Q1,
pkgsrc-2013Q4-base,
pkgsrc-2013Q4,
pkgsrc-2013Q3-base,
pkgsrc-2013Q3
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3
lines
* BSD/OS and OSF/1 are also missing `z' modifier support for printf(3) format.
* bare `zu' modifier is used, it should be replaced with `PRIzu` instead.
Fixes crash with `pkg_admin rebuild' on platforms missing %z support,
PR pkg/48070.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Apr 20 00:39:13 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2013Q2-base,
pkgsrc-2013Q2,
pkgsrc-2013Q1-base,
pkgsrc-2013Q1,
pkgsrc-2012Q4-base,
pkgsrc-2012Q4,
pkgsrc-2012Q3-base,
pkgsrc-2012Q3,
pkgsrc-2012Q2-base,
pkgsrc-2012Q2,
pkgsrc-2012Q1-base,
pkgsrc-2012Q1,
pkgsrc-2011Q4-base,
pkgsrc-2011Q4,
pkgsrc-2011Q3-base,
pkgsrc-2011Q3,
pkgsrc-2011Q2-base,
pkgsrc-2011Q2,
pkgsrc-2011Q1-base,
pkgsrc-2011Q1,
pkgsrc-2010Q4-base,
pkgsrc-2010Q4,
pkgsrc-2010Q3-base,
pkgsrc-2010Q3,
pkgsrc-2010Q2-base,
pkgsrc-2010Q2
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4
lines
pkg_install-20100420:
Extract dependencies of libarchive from the pkgconfig file and thereby
drop knowledge of the needed libraries.
At least some versions of HP-UX are known to not support %zu, add a
workaround. This is using the black list approach for now.
Recognize xz as compression type for pkg_create.
The first time an error is hit while fetching packages, try to reget
from the same position. This works around the server closing the
connection while fetching dependencies.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Feb 20 04:40:03 2010 UTC (16 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base,
pkgsrc-2010Q1
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -4
lines
pkg_install-20100220:
Try harder to give the user an idea which file failed.
Addresses PR 42223.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Jan 22 13:30:41 2010 UTC (16 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +8 -13
lines
pkg_install-20100122:
- Refactor man pages:
- Move description of environmental variables into pkg_install.conf(5)
- Remove a bunch of dead references
- Avoid using hard-coded path names that can easily be overridden by
the user.
- Refactor pkgdb related logic, so that -K behaves consistently.
- Add some helper functions to isolate more places from the pkgdb
layout.
- Sync license list.
- Handle PKG_REFCOUNT_DBDIR consistently as option too.
- Utilize connection cache from libfetch.
- Add helper target for cat pages updates.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Oct 21 17:10:36 2009 UTC (17 years ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q4-base,
pkgsrc-2009Q4
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +8 -3
lines
pkg_install-20091021:
Add support to query arbitrary variables with pkg_admin config-var.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Oct 8 16:16:12 2009 UTC (17 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q3-base,
pkgsrc-2009Q3
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -4
lines
pkg_install-20091008:
- Fix German accent
- Don't dereference a null pointer for pkg_admin add
Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Oct 7 12:53:26 2009 UTC (17 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +24 -14
lines
pkg_install-20091006:
- restore pkg_add -f functionality for missing dependencies (PR 42001)
- pkg_admin rebuild should count packages correctly (he@), also count @pkgdb
- fix gpg-sign-package syntax in pkg_admin(1)
- change default URL for pkg-vulnerabilities to use HTTP
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Aug 16 21:10:14 2009 UTC (17 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +26 -5
lines
pkg_install-20090817:
Add a new command for pkg_admin: findbest. It takes one or more patterns
and searches for the best match in PKG_PATH, just like pkg_add would.
It prints the URLs of the best match for each pattern to stdout.
Rewrite the config file parser to read the file only once.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Aug 2 17:56:44 2009 UTC (17 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -9
lines
pkg_install-20090727:
Make pkg_install WARNS=4 clean and fix a number of lint warnings.
Based on reports from veego about warnings with older GCC releases in
pkg_delete, where a variable is potentially used uninitialized.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed May 13 10:51:46 2009 UTC (17 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2009Q2-base,
pkgsrc-2009Q2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
usage: match man page more closely.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Apr 25 21:31:13 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +35 -2
lines
pkg_install-20090425:
Add logic to evaluate license conditions. As frontend for pkgsrc,
pkg_admin gets two new commands (check-license and
check-single-license), which can be used to evaluate a given condition.
pkg_add will be changed to honour licenses at a later point.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Apr 24 14:00:25 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -2
lines
pkg_install-20090424:
Make pkg_delete -d the default behavior, remove the option.
Remove pkg_create -R support (reorder @dirrm entries).
Introduce new plist command @pkgdir, which makes pkg_add add
this directory if it doesn't exist already and pkg_delete remove it
only if no other package has a @pkgdir entry for it. Otherwise
directories are pruned when the last file or directory in them is
removed. @dirrm is now a pure hint, if the directory doesn't exist, it
will be silently skipped.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Apr 23 19:35:52 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -3
lines
Remove remaining parts of @mtree support.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Apr 23 19:34:04 2009 UTC (17 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -3
lines
Remove support and documentation for @ignore_inst.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Mar 8 14:50:36 2009 UTC (17 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q1-base,
pkgsrc-2009Q1
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -5
lines
pkg_install-20090307:
Simplify archive handling by depending on archive_read_finish and the
close callback where needed. Fixes a file descriptor leak as side
effect as reported by wiz.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Feb 13 11:21:07 2009 UTC (17 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -8
lines
Close the archive on fatal errors during signature validation. This can
happen e.g. if pkg_add finds a directory with that name.
Remove a bunch of HAVE_SSL conditionals that no longer apply as GPG
support is back in.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Feb 2 12:35:00 2009 UTC (17 years, 9 months ago) by joerg
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +45 -55
lines
Merge pkg_install-20090201 from pkg_install-renovation branch.
- DB support is always included from libnbcompat if needed
- pkg_view and linkfarm are not installed any more; they are not moved
into the attic yet, so they can easily be installed as separte package
- common configuration file to customise the behavior of various
components; this supersedes the old audit-packages.conf
- support for PKSC7 signatures (using X509 certs) and GPG signatures for
packages in a secure way. See pkg_admin(8) for how to create them and
pkg_install.conf(5) for the options to use them
- audit-packages and download-vulnerability-list are wrapper scripts
around pkg_admin. They try to mimic the classic options if used sanely.
"pkg_admin audit" is now an order of magnitude faster than before
- pkg_add uses libarchive and libfetch instead of external ftp and tar:
- progress bar is currently missing for downloads
- "pkg_add -" is no longer supported
- no adhoc check for conficts between dependencies and already
installed packages
- "pkg_add -s" has been replaced with an option in pkg_install.conf,
verification of plain detached GPG signatures is no longer supported
- optional check for vulnerabilities before adding a package
- if /var and /usr/pkg are on different fileystems it is twice as fast
now
- conflicts due to overlapping plists are checked before installation
- pkg_add no longer plays with the process limits
- pkg_add and pkg_delete have a new destdir option; scripts have to
either be modified to use PKG_DESTDIR or should be disabled
- pkg_add -u for now can't be used to update to the exact same version
- internal "rm -rf" and "mkdir_p" code
- all memory allocation failures are not explicitly fatal
- if a file is not removed due to a failed checksum, still remove the
entry from pkgdb
Revision 1.42.2.10: download - view: text, markup, annotated - select for diffs
Mon Feb 2 11:55:16 2009 UTC (17 years, 9 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.9: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.9: +2 -4
lines
pkg_install-20090201:
- sync DESCR and MESSAGE with HEAD and the branch state
- sync Makefile
- regen configure
- cleanup __RCSID
- merge audit logic in pkg_add and pkg_admin into new audit_packages
function. As side effect, pkg_add will list all vulnerabilities before
asking the user whether it should continue
- sort config_variable array
Revision 1.42.2.9: download - view: text, markup, annotated - select for diffs
Tue Dec 30 15:55:57 2008 UTC (17 years, 10 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.8: preferred, colored
Changes since revision 1.42.2.8: +18 -7
lines
pkg_install-20081230:
Add initial support for secure GPG signatures.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Sep 17 15:21:30 2008 UTC (18 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2008Q4-base,
pkgsrc-2008Q4,
pkgsrc-2008Q3-base,
pkgsrc-2008Q3
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -3
lines
pkg_install-20080916:
Merge from changes for read_plist from pkg_install-renovation to always
initialize the plist and add append_plist for the one case where this is
not desired. Fixes PR 39276.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Sep 16 13:32:58 2008 UTC (18 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -3
lines
20080915:
Merge a number of bugfixes from the pkg_install-renovation branch:
- explicit include of nbcompat/md5.h
- use errx when dealing with libfetch as it doesn't set errno
- avoid optind = 0 as GNUish getopt will reset itself otherwise
Revision 1.42.2.8: download - view: text, markup, annotated - select for diffs
Mon Aug 25 18:31:14 2008 UTC (18 years, 2 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.7: preferred, colored
Changes since revision 1.42.2.7: +2 -48
lines
Nuke pkgdb debugging code, it hasn't been used for ages.
Revision 1.42.2.7: download - view: text, markup, annotated - select for diffs
Sun Aug 10 22:08:16 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.6: preferred, colored
Changes since revision 1.42.2.6: +2 -3
lines
Push init of plist into read_plist.
Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Sat Aug 2 20:33:50 2008 UTC (18 years, 3 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.5: preferred, colored
Changes since revision 1.42.2.5: +4 -5
lines
Most memory allocation failures were fatal already and the majority of
the rest lacked an explicit check. Add the usual x* wrappers around
malloc and friends that explicitly terminate on error and use them in
all but Dewey.
Revision 1.42.2.5: download - view: text, markup, annotated - select for diffs
Wed Jun 4 11:23:13 2008 UTC (18 years, 5 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.4: preferred, colored
Changes since revision 1.42.2.4: +7 -3
lines
pkg_install-20080603:
pkg_admin check-signature exits with 0 only if all given packages have a
valid signature.
pkg_add will keep the preserve state of a package when updating.
Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Fri May 23 15:57:04 2008 UTC (18 years, 5 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.3: preferred, colored
Changes since revision 1.42.2.3: +2 -9
lines
Merge license changes from the HEAD.
Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Fri May 23 15:51:22 2008 UTC (18 years, 5 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.2: preferred, colored
Changes since revision 1.42.2.2: +5 -3
lines
Consistently use the libnbcompat header for md5 if this is not a native
NetBSD build.
Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Sun May 11 20:20:38 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42.2.1: preferred, colored
Changes since revision 1.42.2.1: +28 -3
lines
Add support PKCS7 signatures in packages and pkg-vulnerabilities.
The support for non-native OpenSSL still needs to be done, e.g.
ensure static linkage for that. Documentation is essentially missing.
Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Thu May 8 23:34:27 2008 UTC (18 years, 6 months ago) by joerg
Branches: pkg_install-renovation
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -4
lines
Move configuration parser into libinstall.
Add a new VERIFY_CMD to be used by pkg_add soon.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Apr 29 05:46:08 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: pkgsrc-2008Q2-base,
pkgsrc-2008Q2,
pkg_install-renovation-base,
cwrapper-base,
cwrapper,
cube-native-xorg-base,
cube-native-xorg
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -9
lines
Drop clauses 3 and 4 from TNF licenses
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Apr 16 00:53:06 2008 UTC (18 years, 7 months ago) by joerg
Branches: MAIN
Branch point for: pkg_install-renovation
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -2
lines
pkg_install-20080415:
Add audit-history subcommand for pkg_admin, that lists all known
vulnerabilities for a given base package name. E.g. if you run a web
server, don't run "pkg_admin audit-history php" before going to bed.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Apr 7 13:07:14 2008 UTC (18 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +11 -5
lines
pkg_install-20080407:
Add command to print effective value of configuration variables.
Remove FETCH_CMD variable from pkg_admin, it is not used.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Mar 23 01:04:47 2008 UTC (18 years, 7 months ago) by dsainty
Branches: MAIN
CVS tags: pkgsrc-2008Q1-base,
pkgsrc-2008Q1
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
Correct typo in usage message: vulneraiblities -> vulnerabilities
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Mar 15 10:55:34 2008 UTC (18 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -6
lines
Fix bootstrap build. From Stoned Elipot.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Mar 13 16:35:30 2008 UTC (18 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +39 -9
lines
pkg_install-20080313:
Audit functionality for pkg_admin. This uses the backend in
libpkg_install and will be extended to check for vulnerabilities at
pkg_add time later.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Mar 9 20:55:25 2008 UTC (18 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -42
lines
Stop chdir/getcwd/fchdir dance in lsall and lsbest, just use the passed
in path name. This is more consistent when symbolic links are involved
as it doesn't do the equivalent of realpath(3) for the path any longer.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Mar 9 20:36:22 2008 UTC (18 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +12 -45
lines
pkgdb.byfile.db maintainance can use the iterator interface as well.
Get rid of more chdir() calls.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Mar 9 19:02:27 2008 UTC (18 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -222
lines
Split check functions into a separate file.
Drop checkall and implement it using "*" as wildcard match.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jan 29 15:39:30 2008 UTC (18 years, 9 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +24 -18
lines
Sign over my copyright to TNF.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Dec 10 10:34:42 2007 UTC (18 years, 11 months ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2007Q4-base,
pkgsrc-2007Q4
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2
lines
document 'rebuild-tree' in usage()
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Aug 29 15:42:39 2007 UTC (19 years, 2 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base,
pkgsrc-2007Q3
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +12 -5
lines
* When adding or checking a package using pkg_admin(1), give a more
meaningful warning if the file is a symlink whose target doesn't exist.
The message has now been changed from:
pkg_admin: netbsd32_compat30-extras: File `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' is in +CONTENTS but not on filesystem!
to:
pkg_admin: Symlink `/usr/pkg/emul/netbsd32/usr/lib/libm387.so' exists and is in +CONTENTS but target does not exist!
* Pass values for --sysconfdir (and --prefix) to the configure script
instead of passing them through CPPFLAGS. Both SYSCONFDIR and PREFIX
are only used by audit-packages, and the audit-packages Makefile
already handles passing these values inherited from the configure
script. This avoids compiler warnings that, e.g. SYSCONFDIR has been
redefined on the command line.
* Fix quoting for arguments to the configure script -- :Q instead of
\"\".
Bump version to 20070828. Reviewed by <joerg>.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Aug 15 02:08:40 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -21
lines
Start abstracting pkgdb access by introducing pkgdb_pkg_file.
The function returns the path name of the given file for the package.
The memory needs to be freed by the caller.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Aug 15 01:49:02 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -4
lines
Make _pkgdb_getPKGDB_DIR return const char * and fix fallout.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Aug 12 22:09:02 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4
lines
pkg_admin: when retrying with a wildcard pattern, use the computed
pattern and not the base name.
pkg_info: add -E option to return the best matching installed package.
Bump to 20070813.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Aug 12 18:54:08 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -5
lines
Restore ignorance of entry types for lsbest and lsall for now.
The check for already installed packages depends on being able
to run them in PKGDB_DIR. This is clearly obnoxius, but leave it
for later.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Aug 12 17:51:36 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
Reference correct variable.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Aug 12 16:47:17 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +14 -18
lines
- Introduce find_best_matching_file and match_local_files. This replace
the functionality offered by findmatchingname and findbestmatching
name. They optionally strip the suffix from the filename before
matching it, instead of modifying the pattern directly.
Drop the old functions.
- Fix a bug in pkg_order where the version strings where inverted
- Make pkg_admin lsbest and lsall use the new functions.
- Make ftpio use pkg_order directly.
Bump version to 20070812.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Aug 10 21:18:31 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +92 -2
lines
Add "rebuild-tree" command to pkg_admin. It recomputes the dependencies
and builds the +REQUIRED_BY files from that.
Bump to 20070810.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Aug 10 00:03:51 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2
lines
Actually assign variable that tells the caller that we got a match.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Aug 9 23:54:17 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -3
lines
Make var_set and var_get arguments always use full path names.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Aug 8 22:33:38 2007 UTC (19 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +68 -67
lines
Replace note_whats_installed, add_to_list_fn and generally most
users of findbestmatchingname and findmatching name with more
descriptive and easier to use iterator functions. This functions
are a first step to abstract away pkgdb layout from most parts of
the code. It also helps to reduce side effects and point out potential
bugs in this code.
Fix a potential, but practically irrelevant buffer overflow.
No longer allow symbolic links directly in pkgdb to store the meta
data of individual packages outside. E.g. /var/db/pkg/atk-1.18.0
must be a directory and not point to it. This is not yet enforced in
all parts of the code, more changes will follow.
Bump version to 20070808.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Jul 20 22:22:52 2007 UTC (19 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +9 -9
lines
Split pattern related functions from lib/str.c off into lib/opattern.c.
Rename pmatch to pkg_match and add new function pkg_order that
implements the order logic used by pkg_add internally.
Change the interface of findmatchingname's callback to take the pattern
used for the matching as first argument. The new pkg_order function
takes it and it doesn't hurt in other cases. Adjust callers and
corresponding callbacks accordingly.
Remove an unused matchfn typedef in dewey.c.
Bump to 20070720. OK jlam@
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Apr 4 06:25:59 2006 UTC (20 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base,
pkgsrc-2007Q2,
pkgsrc-2007Q1-base,
pkgsrc-2007Q1,
pkgsrc-2006Q4-base,
pkgsrc-2006Q4,
pkgsrc-2006Q3-base,
pkgsrc-2006Q3,
pkgsrc-2006Q2-base,
pkgsrc-2006Q2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4
lines
Pull over v1.51 from src/usr.sbin:
revision 1.51
date: 2006/03/06 20:00:10; author: reed; state: Exp; lines: +4 -4
Fix the "Cannot chdir" error message to actually show the
problem directory name for lsbest and lsall.
For example:
# pkg_admin -d /usr/packages/DragonFly/1.4.0/i386/All lsbest 'gmake>0'
pkg_admin: Cannot chdir to /var/db/pkg: No such file or directory
Should show:
pkg_admin: Cannot chdir to /usr/packages/DragonFly/1.4.0/i386/All: No such file or directory
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Nov 5 13:20:09 2005 UTC (21 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2006Q1-base,
pkgsrc-2006Q1,
pkgsrc-2005Q4-base,
pkgsrc-2005Q4
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +119 -11
lines
Sync with base system as of Sat Nov 5 13:19:32 UTC 2005.
Welcome to 20051103!
Now with "automatic" support.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Fri Mar 11 21:20:15 2005 UTC (21 years, 8 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2005Q3-base,
pkgsrc-2005Q3,
pkgsrc-2005Q2-base,
pkgsrc-2005Q2,
pkgsrc-2005Q1-base,
pkgsrc-2005Q1
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -6
lines
Never access argv[i+1] before you know that argv[i] != NULL. Approved
by wiz.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Dec 29 12:16:56 2004 UTC (21 years, 10 months ago) by agc
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +16 -16
lines
Pull in portability changes from src, and bump version to 20041226:
Introduce a new abstraction in the C code, called MaxPathSize. All
previous occurrences of MAXPATHLEN and FILENAME_MAX have been changed
to use MaxPathSize instead.
If MAXPATHLEN is not defined, then assume a default value of 1024
(this is primarily for use on the Hurd).
The reason for this is that some older platforms define FILENAME_MAX
to be 14, although MAXPATHLEN is 1024. On BSD-derived systems,
FILENAME_MAX And MAXPATHLEN are both 1024.
Bump pkg_install version to 20041226.
These modifications have been tested so far on a NetBSD-current bulk
build.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Aug 20 20:09:53 2004 UTC (22 years, 3 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2004Q4-base,
pkgsrc-2004Q4,
pkgsrc-2004Q3-base,
pkgsrc-2004Q3
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +25 -9
lines
Update pkgtools/pkg_install to 20040813 (latest release from the HEAD
branch of src). Changes from version 20040730 include:
Modify pkg_info so that it will only print information on uninstalled
binary packages in the current working directory if -. is given on
the command line. If no -. is given, pkg_info will look for its
information in the ${PKG_DBDIR}. This addresses a long-held gripe on
the part of a number of people, including myself (agc), which completely
violated the POLS.
Add a -q switch to pkg_admin, which allows it to work in a quiet
manner. Fixes the change request in PR 26583, but in a different
manner, preserving existing behaviour and making the new behaviour
dependent upon a command line option.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Aug 6 16:57:03 2004 UTC (22 years, 3 months ago) by jlam
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
Sync with version 20040730 from src/usr.sbin/pkg_install on the HEAD:
> Re-work the code which checks the recorded build versions of a binary
> package to make pkg_add work properly when no +BUILD_INFO file exists.
>
> Modify the return value from read_buildinfo() to return 1 for success
> and 0 for failure.
>
> Use symbolic constants, rather than integers.
>
> If we can't read the build information, always tell of this fact.
>
> Bump version to 20040730
>
> Addresses PR 26429; a different version of these mods were verified to
> allow a +BUILD_INFO-less binary package to be added by Martin Husemann.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Feb 7 10:37:52 2004 UTC (22 years, 9 months ago) by grant
Branches: MAIN
CVS tags: pkgsrc-2004Q2-base,
pkgsrc-2004Q2,
pkgsrc-2004Q1-base,
pkgsrc-2004Q1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +30 -15
lines
sync with NetBSD-current's pkg_install from 20040207.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Sep 23 07:13:48 2003 UTC (23 years, 1 month ago) by grant
Branches: MAIN
CVS tags: pkgsrc-2003Q4-base,
pkgsrc-2003Q4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +56 -46
lines
sync with NetBSD-current's pkg_install-20030923.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Sep 13 05:50:26 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +33 -7
lines
Update pkg_install to version 20030912. Changes from 200230907 are
adding two new options to pkg_admin(1) to simply using this utility to
list the bare package names that match patterns when looking in PKG_DBDIR:
-b Print only the basenames when matching package names for
lsall and lsbest.
-d lsdir
Set lsdir as the path to the directory in which to find
matching package names for lsall and lsbest.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Sep 9 13:34:18 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +131 -90
lines
Bump version to 20030907. Changes from previous version include:
* Teaching pkg_add(1) to be smarter about how to add a depoted packge.
* "pkg_delete foo" only deletes foo if it's a unique package.
* Make "pkg_delete -O foo" for delete file entries for foo from
pkgdb.byfile.db actually work.
* Teach pkg_admin(1) two new commands "add" and "delete" for working
with pkgdb.byfile.db.
* pkg_view(1) uses the new pkg_admin(1) commands to keep the
pkgdb.byfile.db files consistent in each view.
* Man page fixes.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Sep 2 08:28:25 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3
lines
Sync to latest pkg_install sources from the HEAD for pkg_delete
optimizations and man page fixes. Also use recent src2nbcompat to reverse
the order that "config.h" and <nbcompat.h> are included in *.[ch] files.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Sep 1 16:27:11 2003 UTC (23 years, 2 months ago) by jlam
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +69 -48
lines
Update pkg_install to 20030823, which has the changes to support
package views. Pkgsrc changes include:
* Convert to use pkgtools/libnbcompat so that it's easier to keep
this in sync with src/usr.sbin/pkg_install.
* Add a src2nbcompat script that converts src/usr.sbin/pkg_install
into an appropriate start for pkgtools/pkg_install. The script
removes the Makefiles, adds CPP inclusion guards around each
#include <...> line, and includes <nbcompat.h> at the top of each
*.c file. This should make it even easier to keep sources in
sync with the HEAD.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Apr 17 14:00:55 2003 UTC (23 years, 7 months ago) by grant
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +9 -9
lines
sync with bootstrap and -current:
- pkg_admin getcwd() fix.
- pkg_delete checksum mismatch warning.
- crank PKGTOOLS_VERSION.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Mar 29 18:41:56 2003 UTC (23 years, 7 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Synch with main sources:
Changes by hubertf and seb; these changes tested on NetBSD, Linux and Irix.
Modified Files:
src/usr.sbin/pkg_install/add: perform.c pkg_add.1
Log Message:
Implement remaining TODO item in pkg upgrade (pkg_add -u):
* Upgrade step 1/4: Check if the new version is ok with all pkgs
* (from +REQUIRED_BY) that require this pkg
Inspired by bsd.pkg.mk's upgrade(?) target.
Modified Files:
src/usr.sbin/pkg_install/admin: main.c
src/usr.sbin/pkg_install/info: main.c perform.c
Log Message:
Consistently check findmatchingname() return value for error condition.
Among other this fixes 'pkg_info -e whateverpkg' exit status when
/var/db/pkg is missing: it is now 1 and not 0.
Modified Files:
src/usr.sbin/pkg_install/lib: version.h
Log Message:
Bump to "20030325" after today's changes from seb and me
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Mar 16 19:44:09 2003 UTC (23 years, 8 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -19
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.5: download - view: text, markup, annotated - select for diffs
Tue Jan 14 15:18:33 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
CVS tags: netbsd-1-6-1-base,
netbsd-1-6-1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -5
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.4: download - view: text, markup, annotated - select for diffs
Tue Jan 7 16:43:56 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -6
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.3: download - view: text, markup, annotated - select for diffs
Tue Jan 7 16:10:02 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -6
lines
Unlike pkg_install in src, this version of pkg_install contains
a pkgdb_open that may return one of _three_ values (0,1,-1), so that
we can not simply use
if (!pkgdb_open(ReadOnly))
but need to use
if (pkgdb_open(ReadOnly) == -1)
Mea culpa.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Jan 6 04:34:16 2003 UTC (23 years, 10 months ago) by jschauma
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +32 -29
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.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Dec 20 18:13:53 2002 UTC (23 years, 11 months ago) by schmonz
Branches: TNF
CVS tags: pkgsrc-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
Import autoconf'd pkg_install source from
othersrc/bootstrap-pkgsrc/pkg_install into ${FILESDIR}.
Using autoconf greatly simplifies maintenance of this package across
multiple platforms. Placing the extracted source under ${FILESDIR}
will eventually let us use the same source for bootstrapping as
well, though we're not ready for this yet.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Dec 20 18:13:53 2002 UTC (23 years, 11 months ago) by schmonz
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>