Return an error if failure were found, this fixes periodic script not sending mail

Reported by:	wblock
Fix progress bars when not in a tty to give output
Ignore sigpipe to avoid resources leak.
Read lock is now no-op unles READ_LOCK option is turned on.
Refactor update.
EORDER.
Fix incremental repo updates.

Insert should be accompanied with `OR REPLACE` for packages since we
want to upgrade packages information in repo.
Add a rootfd to simplify handling of relocation
Add sha256_fileat function
Simplify relocation support by using using *at functions
Reinitialize properly rootfd
Style
Implement file_to_buffer_at
Simplify a bit package creation using *at function
Do not leak a fd
Regenerate the version script
Fix parsing keyword(user,group,mode)
DragonFly doesn't put the OSMAJOR version into __DragonFly__ at
compile time.
Fix error with @keyword(user,group,mode)
Wow.  This was severely out of date.  Severe updating.