prerm script only allows failed-upgrade

Bug #1038302 reported by Brian Murray
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trousers (Debian)
Fix Released
Unknown
trousers (Ubuntu)
Fix Released
High
Brian Murray
Precise
Invalid
High
Brian Murray

Bug Description

[ Test Case ]

1) install trousers
2) try to remove trousers using 'sudo apt-get remove trousers'
3) watch it fail

trousers.prerm contains the following lines:

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;

This prevents things like apt-get remove from working and they really should.

Related branches

Revision history for this message
Brian Murray (brian-murray) wrote :

This should be SRU'ed to Precise too.

Changed in trousers (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package trousers - 0.3.9-2ubuntu1

---------------
trousers (0.3.9-2ubuntu1) quantal; urgency=low

  * debian/trousers.postinst: Reload udev rules to reload new users and
    groups. (LP: #959795) Thanks to James M Leddy for the patch.
  * debian/trousers.prerm: let other arguments like remove work (LP: #1038302)
 -- Brian Murray <email address hidden> Fri, 17 Aug 2012 14:34:07 -0700

Changed in trousers (Ubuntu):
status: In Progress → Fix Released
Changed in trousers (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Brian Murray (brian-murray)
description: updated
Revision history for this message
Adam Conrad (adconrad) wrote :

This bug doesn't appear to affect precise, which doesn't have a hand-written prerm at all.

Changed in trousers (Ubuntu Precise):
status: Triaged → Invalid
Revision history for this message
oussama (obounaim) wrote :

This bug has been fixed in Debian in version 0.3.9-3. #680375

Changed in trousers (Debian):
status: New → Fix Released
Logan Rosen (logan)
Changed in trousers (Debian):
importance: Undecided → Unknown
status: Fix Released → Unknown
Changed in trousers (Debian):
status: Unknown → Fix Released
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.