package: call repo_internalize_trigger in get_files() (RhBug:1062703)
Save the cache atomically. (RhBug:1047087)
Fix vsnprintf SIGSEGV passing "%s" with no va_list args to pool_debug. (RhBug:1064459)

With a help from pmachata@redhat.com.
write_main() should do a better job erroring out on write errors.
write_main() and write_ext(): even on error do not leave the temporary file behind.
Add reponame into selector.
tests: add a negative test for reponame.
New version: 0.4.10
build: 0.4.10-1
sack: write_*() should also check fclose().

suggested by mls.
added glob pattern search for arch to nevra_possibilities_real (RhBug:1048788)