[pacman-dev] [PATCH v2] Move flushing 'output' list into separate function