The process to install a kpackage package through knewstuff is:
- download to /tmp
- copy to /tmp with the desired filename
- call the install command against the file
This fixes the second step. Sometimes the first download failed or
something, this would make any subsequent attempts fail because
QFile::rename doesn't work if the file is already present.
We were using the QProcess API wrongly
The executable wasn't decoded so it even started, which means not ever
emitting finished