Merge pull request #32 from Gottox/master

Adding xbps_fetch_file_dest and support custom file output names for xbps-uhelper fetch
NEWS: mention recent change to xbps-uhelper fetch by Gottox.
Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points.

- Rather than using a POSIX named semaphore use a POSIX lock (lockf(3))
for pkgdb for writers. Writers that cannot acquire the pkgdb lock will
get EAGAIN rather then being blocked.

- Due to using a file lock we cannot write the pkgdb every time a package
is being unpacked, configured or removed. Instead pkgdb is only written
at the end of a specific point in the transaction (unpack, configure, remove)
or via xbps_pkgdb_unlock().
xbps_pkgdb_init: initialize xhp->pkgdb_plist if it wasn't before.
xbps-uhelper: update usage() for fetch and add Gottox to copyright.
xbps-dgraph: only set rootdir it was set (fix #33).
lib/initend.c: ignore -Wformat-nonliteral with clang.
NEWS: prepare 0.33.
Post-release bump to 0.34.
Added support to pass native machine architecture to pkg scripts (6th arg).
xbps_transaction_commit: add some debugging in error paths.
xbps_transaction_commit: add some more debugging.
xbps_remove_pkg: misc debugging tweaks.
xbps_configure_pkg: try to use pkgname if possible to configure a pkg.

In pwwka's case for some reason the transaction was trying to configure
'man-pages-3.62_1' while in pkgdb there was only 'man-pages-3.55_1'.

By using the pkgname the pkg stored in pkgdb will be configured, without
caring what version it is.
NEWS: mention recent changes.
Optimize most common path when resolving package dependencies.

Before that change the code would do the following:
	1- if dependency is installed, continue
	2- if dependency is queued, continue
	3- get dependency from repos

After that change the code does this:
	1- if dependency is queued, continue
	2- if dependency is installed, continue
	3- get dependency from repos

So the dependency is checked if it has been queued as the first phase, which
seems to be the most common path in most cases.
Fix #34 (make libfetch always add "Accept: */*" in the HTTP header).
xbps-query: print the 'hold' object on installed packages.
COPYING: sync with reality.
xbps-query: in local mode print all objs from pkgdb.