Created attachment 105257 [details] 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
Concept looks good, but I'm not in love with the "allow_unauthenticated" name. "allow-untrusted"? "allow-non-trusted"?
Created attachment 105297 [details] [review] Updated patch Thanks a lot for your review and feedback! I updated the patch now to use the suggested name and also added a man-page entry for it.
Pushed to master, thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.