Comment 10 for bug 1360582

Revision history for this message
In , Michael Vogt (mvo) wrote :

Created attachment 105257
add a new --allow-unauthenticated option to pkcon

In order to install packages without a signature (e.g. to test locally build projects) it would be nice to have a way to tell packagekit in advance that its ok to install a package without authentication (i.e. avoid the interactive question during the task execution).

The use case is a SDK that can build a test package from your project and install it into a emulator to do a full end-to-end test of the project.

Attached is a patch that implements a pkcon --allow-unauthenticated option that clear the PK_TRANSACTION_FLAG_ENUM_ONLY_TRUSTED flag when this option is used.

Feedback welcome! If that looks acceptable I'm happy to do the man-page addition as well.

Thanks,
 Michael