Match just one specific tag
Fix format string generation in pkg_printf.

As buf is passed as char * it is useless to apply sizeof operator
to it.
Fix regression in pkg version output
Fix va_args usage in pkg_printf.

We modify va_list in process_format_main by calling va_arg function,
hence we need to pass a pointer to va_list to allow subsequent calls
of this function to operate with a proper state of va_list.
Another try to fix va_args problem.

Now just avoid passing va_list outside of the function that perfroms
varargs processing.
Fix pkg stats when no repositories are configured
Fix pkg deinstall printing 4G of free space after deinstallation on 32bits
Activate -I in pkg upgrade for real
Better testing of flags
Fix regression preventing upgrade from running post-install
Do not add an unknown flag to the pkg_add flags

Bring back the bitmap to its initial clean values
Fix zsh completion

Fixes: #520
Fix human_number is pkg_printf not being architecture consistent
Revert "Fix human_number is pkg_printf not being architecture consistent"

This reverts commit de394b16321b2ef523831a1fe1646c6e9f30235c.
Real fix on i386
Fix double close(2)

Reported by:	Coverity Scan
Fix double free on struct file_attr* in meta_exec()

dirrmtry() calls meta_dirrm() which is already calling free_file_attr()

Reported by:	Coverity Scan
Ensure safe umask before writing temporary repo from remote

pkg(8) already sets umask(022) on startup, but this may be called via
the library interface.

Reported by:	Coverity Scan
dlopen(3) returns a NULL pointer. Also avoid dlclose(NULL) here.

Reported by:	Coverity Scan
Fix fd leak in query_tty_yesno() on EOF

Reported by:	Coverity Scan