Ticket #46 (closed Enhancement: fixed)

Opened 1 year ago

Last modified 11 months ago

Making possible to uninstall dependencies

Reported by: UnFleshed One Assigned to: taj
Priority: Medium Milestone: 1.2.5
Component: main Version: 1.2.4
Severity: Normal Keywords: uninstallPackage; dependencies
Cc:

Description

Patch to erase dependency record before calling uninstall script. This will make it possible for meta packages to take out their dependencies with them (unless something else depends on them).

With this applied it is possible to do:

package_a.apspec:

[Prepare]
require @root/package_b

[Uninstall]
uninstallFromLog

if isNameKnown package_b_shortname
then
     uninstallPackage package_b_shortname
fi

Currently uninstall of B will fail because it still thinks A depends on it.

Attachments

apkg-funclib.patch (0.7 kB) - added by UnFleshed One on 08/30/07 13:47:29.

Change History

08/30/07 13:47:29 changed by UnFleshed One

  • attachment apkg-funclib.patch added.

09/03/07 13:13:50 changed by isak

I think this looks good, and I can't see any downsides of applying it. Curtis or Taj, do you agree?

09/04/07 13:11:55 changed by taj

Looks good to me.

In theory, this could be a problem if something that is unknown to Autopackage though isNameKnown is using the dep (e.g., something installed from source). However, I don't think this will really be a problem, especially if the packager knows that they're doing.

09/04/07 13:20:47 changed by isak

  • status changed from new to closed.
  • resolution set to fixed.

Patch applied (r2414), thanks.

09/04/07 13:21:17 changed by isak

  • milestone set to 1.2.5.