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
Fix style
Fix possible fd leak if fd==0

Reported by:	Coverity Scan
Fix struct pkg_config memory leak in pkg_plugin_conf_add_integer()

Reported by:	Coverity Scan
Fix struct pkgdb leak if unable to create db directory in pkgdb_open()

Correct comment.

Reported by:	Coverity Scan
Fix struct rsa_key memory leak in pkg_finish_repo() on error

Reported by:	Coverity Scan