Merge lp:~evfool/update-manager/fix817785 into lp:update-manager
Status: | Merged |
---|---|
Merged at revision: | 2204 |
Proposed branch: | lp:~evfool/update-manager/fix817785 |
Merge into: | lp:update-manager |
Diff against target: |
31 lines (+4/-4) 2 files modified
DistUpgrade/DistUpgradeViewGtk.py (+2/-2) DistUpgrade/DistUpgradeViewGtk3.py (+2/-2) |
To merge this branch: | bzr merge lp:~evfool/update-manager/fix817785 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt | Pending | ||
Review via email: mp+70830@code.launchpad.net |
Description of the change
Fix for a crash appearing, when distUpgrade is waiting for input for a yes/no question and should forward it to the VteTerminal.
The feed_child method used in this case takes two parameters, the string to send and the length of the string. [1]
With the old python bindings, feed_child had the second parameter default to -1 (that is why it was working until now) [2], but the GObject introspection based bindings do not support the default parameter value annotation yet [3], so until it gets implemented, we have to specify the -1 value to let the function calculate the length of the string (must be null-terminated) [4].
[1] http://
[2] http://
[3] https:/
[4] http://