For distinguishing the cases...I don't know of a way to do that. For any failed authentication, dbus returns the exception 'PermissionDeniedByPolicy', and with the patch, software-properties catches that. Maybe somewhere in dbus, a finer distinction could be found, but that's just speculation. What I know about this, I just learned at the time of going after this bug.
I'll look next at the cleanest way to change the code, when it catches that exception, to do a no-op, and not pop any dialog.
Thanks, Matthew, and no problem. :)
For distinguishing the cases...I don't know of a way to do that. For any failed authentication, dbus returns the exception 'PermissionDeni edByPolicy' , and with the patch, software-properties catches that. Maybe somewhere in dbus, a finer distinction could be found, but that's just speculation. What I know about this, I just learned at the time of going after this bug.
I'll look next at the cleanest way to change the code, when it catches that exception, to do a no-op, and not pop any dialog.