Bug 83075 - [patch] add --allow-unauthenticatd switch to pkcon
Summary: [patch] add --allow-unauthenticatd switch to pkcon
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
Depends on:
Reported: 2014-08-26 00:20 UTC by Michael Vogt
Modified: 2014-08-26 19:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

add a new --allow-unauthenticated option to pkcon (4.25 KB, text/plain)
2014-08-26 00:20 UTC, Michael Vogt
Updated patch (5.24 KB, patch)
2014-08-26 17:27 UTC, Michael Vogt
Details | Splinter Review

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.

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.