When the input file name has no extension, just ignore the extension
    instead of failing outright. This is useful when /dev/stdin is the input
    filename and there are known to be no dependencies to deal with.
    Deal l with temporary contention in pkgdb_transaction_begin() by retrying
    up to NTRIES times. This avoids "database is locked" failures under
    contention.
    Retry up to NTRIES times in get_pragma() when sqlite fails with
    SQLITE_BUSY. This function is called outside of a transaction and so
    isn't handled by the retries in pkgdb_transaction_begin().