Ignore vim swap files
Ignore test binary
Remove trailing space
Make pkg repo version a soft error for now as it is impeding development
Add missing read access check
Rename -L to -U and deprecate -L usage
The -L flag is being renamed elsewhere
search/rquery: Automatically update repo catalogue

The -U flag and REPO_AUTOUPDATE are available to disable this.

Issue:	#424
rquery/search: Be quiet when updating as the output is being used in scripts

The alternative is to send the output to stderr but I think that would be harder
to maintain and be error prone. If something is added and we forget to stderr it
in this call chain then scripts may end up parsing it

Issue:	#424
Update document date to the present
In pkg_suggest_arch(), use pkg_emit_developer_mode() so it is more clear this is a DEVELOPER_MODE notice
Fix tests for updating config options
Enable pkg field tests
Rename pkg_value -> pkg_str
Add more pkg field tests
Fix @exec not respecting @cwd by calling cd(1) before @exec entries

@cwd /
@exec mkdir -pm 0770 var/audit/dist
@exec mkdir -pm 0700 var/audit/remote
@exec chown %%USERS%%:%%GROUPS%% var/audit/dist
@exec chown %%USERS%%:wheel var/audit/remote

scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow audit >/dev/null 2>&1; then  echo "Creating group 'audit' with gid '77'.";  /usr/sbin/pw groupadd audit -g 77; else echo "Using existing group 'audit'."; fi
    if ! /usr/sbin/pw usershow auditdistd >/dev/null 2>&1; then  echo "Creating user 'auditdistd' with uid '78'.";  /usr/sbin/pw useradd auditdistd -u 78 -g 77  -c "Auditdistd unprivileged user" -d /var/empty -s /usr/sbin/nologin;  else echo "Using existing user 'auditdistd'."; fi
    cd /
    mkdir -m 0770 var/audit/dist 2>/dev/null
    mkdir -m 0700 var/audit/remote 2>/dev/null
    chown auditdistd:%25GROUPS var/audit/dist
    chown auditdistd:wheel var/audit/remote
    /sbin/ldconfig -m /usr/local/lib
    cd /usr/local
    cd /usr/local
  pre-deinstall: |

Issue:	#465
Fix @unexec not respecting @cwd by calling cd(1) before @unexec entries

@unexec echo "before @cwd /"
@unexec echo "before @cwd / gtk-update-icon-cache"
@cwd /
@unexec rmdir var/audit/dist 2>/dev/null || true
@unexec rmdir var/audit/remote 2>/dev/null || true
@unexec echo "after @cwd / gtk-update-icon-cache"
@unexec echo "after @cwd /"

scripts:
  pre-deinstall: |
    cd /
    cd /usr/local
    cd /usr/local
    echo "before @cwd /"
    echo "after @cwd /"
    /sbin/ldconfig -R
  post-deinstall: |
    echo "before @cwd / gtk-update-icon-cache"
    cd /
    echo "after @cwd / gtk-update-icon-cache"
    cd /usr/local

Note that the pre-deinstall has the wrong ordering which will
be fixed in the next commit.

Issue:	#465
Fix @unexec not respecting plist order (which breaks @cwd expecations)

@unexec echo "before @cwd /"
@unexec echo "before @cwd / gtk-update-icon-cache"
@cwd /
@unexec rmdir var/audit/dist 2>/dev/null || true
@unexec rmdir var/audit/remote 2>/dev/null || true
@unexec echo "after @cwd / gtk-update-icon-cache"
@unexec echo "after @cwd /"

scripts:
  pre-deinstall: |
    echo "before @cwd /"
    cd /
    echo "after @cwd /"
    /sbin/ldconfig -R
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    echo "before @cwd / gtk-update-icon-cache"
    cd /
    echo "after @cwd / gtk-update-icon-cache"
    cd /usr/local
    cd /usr/local

Issue:	#465
Implement dynamic schema modification -- both up- and downgrade -- to
allow repo downloaded from remote to match properly with what the
locally installed pkgng expects.
Display new notice events when we're not in quiet mode.