Project

General

Profile

Bug #950

Package installation failures leaves package installed

Added by Chris Buechler over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Package System
Target version:
Start date:
10/13/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.0
Affected Architecture:

Description

When a package cannot be installed, such as missing binaries or binaries that cannot be fetched for any reason, the package install fails, but the pkg's XML is added to the config so the package shows as installed though it actually isn't.

Associated revisions

Revision 2c794549 (diff)
Added by Ermal Luçi over 8 years ago

Ticket #950. Correctly handle failures while installing packages which might leave stale information behind. Also do not try to startup services twice. Rename uninstall_package_from_name to uninstall_package because the operation on packages is only done through package names.

Revision fcf92dae (diff)
Added by Ermal Luçi over 8 years ago

  • Use pkg_info -E pkgname* for testing if a package is installed.
  • Do not call eval if we cannot include an .inc file since that will make the whole script fail.
  • Keep the log from the start to the end without overwriting. This makes debugging and problem reporting easy and explains what is done during installation.
  • Check retrun value of download_with_progress_bar to make it possible catching errors during download.
  • Lots of improvements in between

Related to Ticket #950

History

#1 Updated by Chris Buechler over 8 years ago

  • Subject changed from Package installation failures leave package stuck as installed to Package installation failures leaves package installed

#2 Updated by Ermal Luçi over 8 years ago

  • Status changed from New to Feedback

#3 Updated by Michel Samovojski over 8 years ago

get the problem with this packages "ifBWStats Diagnostics 1.0"

#4 Updated by Hugo Sousa over 8 years ago

get the problem with imspector 0.8-9

2.0-BETA4 (i386)
built on Wed Nov 3 02:54:06 EDT 2010
FreeBSD 8.1-RELEASE-p1

#5 Updated by Jim Pingle over 8 years ago

  • Status changed from Feedback to New

#6 Updated by Ermal Luçi over 8 years ago

you tried those packages on 2.0 or 1.2.x?

#7 Updated by Ermal Luçi over 8 years ago

  • Status changed from New to Feedback

With latest commits it seems quite stable.

#8 Updated by Chris Buechler over 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF