[Bug 2473] New: "dpkg -P" confusing error message when removing package with deps

bugzilla at busybox.net bugzilla at busybox.net
Mon Aug 30 19:44:05 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=2473

           Summary: "dpkg -P" confusing error message when removing
                    package with deps
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: adam.g.roberts at baesystems.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 2401
  --> https://bugs.busybox.net/attachment.cgi?id=2401
Fixes confusing error message

Running "dpkg -P <package-name>" for a package which has dependencies installed
on the system creates a message similar to the following:

dpkg: package <dependency> depends on <package-name>, which is not installed or
flagged to be installed

This is highly misleading to the user because the package <package-name> IS
installed on the system, and in fact is the very package the user was looking
to remove.

I have modified dpkg.c within version 1.18.0.git slightly to produce output
similar, but not identical, to upstream dpkg output in the same situation.  The
variance is that while upstream dpkg lists all of the dependencies of
<package-name>, this edit to busybox's dpkg will only output what would be the
top of upstream dpkg's list. The new output appears as follows:

dpkg: dependency problems prevent the removal of <package-name>
 <dependency> depends on <package-name>

I feel as though this is a far clearer explanation of the situation at hand and
is less apt to confuse the user.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list