pkg-repo: Only show progress bar when outputting to a TTY