unreachable code in postinst

Bug #787186 reported by Colin Watson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: software-center

software-center.postinst includes this code:

if [ "$1" = "triggered" ] || [ "$1" = "configure" ]; then

    # update the application data
    update-software-center --triggered "$2" || true
    exit 0
fi

# make sure we update the index so that on first install
# we have something to show (LP: #617397)
if [ "$1" = "configure" ];then
    update-apt-xapian-index -u || true
fi

The second if block is unreachable. I suspect that the 'exit 0' should only happen if [ "$1" = "triggered" ].

Changed in software-center (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.