Bug 83075

Summary: [patch] add --allow-unauthenticatd switch to pkcon
Product: PackageKit Reporter: Michael Vogt <mvo>
Component: GeneralAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: add a new --allow-unauthenticated option to pkcon
Updated patch

Description Michael Vogt 2014-08-26 00:20:27 UTC
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
Comment 1 Richard Hughes 2014-08-26 08:48:08 UTC
Concept looks good, but I'm not in love with the "allow_unauthenticated" name. "allow-untrusted"? "allow-non-trusted"?
Comment 2 Michael Vogt 2014-08-26 17:27:43 UTC
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.
Comment 3 Richard Hughes 2014-08-26 19:12:18 UTC
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.