The whole privilege-checking section of the code looks like it was copied from the 'jockey' app. It starts at line 306, the comment "# helper from jockey":
http://bazaar.launchpad.net/~ubuntu-core-dev/software-properties/main/view/head:/softwareproperties/dbus/SoftwarePropertiesDBus.py#L306
(AFAICT, that code predates the bazaar history, which shows the file arriving in one piece, including the main part of this code.)
Later, I'll try to look at jockey and see if it now handles this better. Thanks.
The whole privilege-checking section of the code looks like it was copied from the 'jockey' app. It starts at line 306, the comment "# helper from jockey":
http:// bazaar. launchpad. net/~ubuntu- core-dev/ software- properties/ main/view/ head:/softwarep roperties/ dbus/SoftwarePr opertiesDBus. py#L306
(AFAICT, that code predates the bazaar history, which shows the file arriving in one piece, including the main part of this code.)
Later, I'll try to look at jockey and see if it now handles this better. Thanks.