Indeed, this is postinst so the value is "configure" for all successful
upgrades. What could be done is actually only checking if $2 exists or
not, since if I remember correctly we only have postinst configure
called with a version number in the case of upgrades or downgrades -
which I suppose don't matter as in case of downgrading to an older
version that we expect modify /etc/default/keyboard then anyway the
destination version's postinst is executed. And I suppose the same thing
happens for packages that are in the config-installed state, but that
shouldn't be a problem for us (since it means postinst ran at least once
anyway).

Probably needs checking.

Could you check if only doing a test for the existence of $2 would
suffice? This could probably be added to the existing conditional and
make the maintscript look better.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1762952

Title:
  Alternative shortcut for layout switching Alt+Shift unexpectedly set
  by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/1762952/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to