machine:
- create /var/db/pkg if not there
- fix wrong handling of findmatchingname() return code, resulting
in missing /var/db/pkg dir being interpreted as match found
- only move +BUILD_VERSION and +BUILD_INFO files if they're
actually present (old pkgs don't have them!)
a string constant in one place and a null char ** in another. Why the
recent rather minor changes by Christos uncovered these bugs after so much
time is a mystery to me.
creating packages, and modify pkg_add to copy the files when a binary
package is added. This preserves the fine-grained version information in
a binary package, and also the options with which the binary package was
built.
PR bin/6284, slightly munged about for platforms which aren't LP64.
Also, don't use hardcoded strings (or their lengths) when we've
already defined them in a common header file.
+ Fix a bug introduced when the package name comparison routines were moved -
alternate matching now completes and works properly.
+ Add -R argument to pkg_create, which re-orders any directories in the
generated PLIST into reverse alphabetic order.
+ Add -l argument to pkg_create, which checks that any symbolic links in
the package are relative-to-$PREFIX pathnames, rather than full pathnames.
+ General cleanup elsewhere.
to u+rwx to make our chances of success better. The modes for directories
are reset at the end of a sup run, so we don't need to worry about that.
This possibly might mess up the mode of the parent of the top-level dir,
if the top-level changed to a non-directory. This is probably rare enough
not to care too much about.
XXX: Should probably chmod the containing directory for each non-directory
removal as well, so there wouldn't be complaints about them. Please feel
free to send in your opinions on that...
to be printed. Also, don't error out if any unexpected input is read -
just log the error, and keep on going.
Fix a slight bug along the way - if there was an @option in the package,
then pkg_info would die.