I suspect that it shouldn't enter those last two blocks unless line_number has been set properly yet, since diff hunks always start with @@.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1120322 Title: update-manager crashed with UnboundLocalError in show_diff(): local variable 'line_number' referenced before assignment To manage notifications about this bug go to: https://bugs.launchpad.net/aptdaemon/+bug/1120322/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
