Bug 201533 - ports-mgmt/pkg: pkg install leaves database probably inconsistent upon interruption
Summary: ports-mgmt/pkg: pkg install leaves database probably inconsistent upon interr...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Some People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-13 17:29 UTC by J. B.
Modified: 2016-05-22 15:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J. B. 2015-07-13 17:29:59 UTC
[147/537] Extracting taglib-1.9.2_2: 100%.9.1_2 
[216/541]   "

[149/537] Extracting lapack-3.5.0 100%-3.5.0
[150/541] Extracting lapack-3.5.0  100%=3.5.0


[ Cant paste actual results, lines too long]

Here, pkg install a.....z  (about 20 ports)
results in an across-major-version hundreds.

Where it halts (file conflicts with file...) and
has to be restarted,  

Note please the taglib/lapack etc ports
[hundreds in this case] have ALREADY been
upgraded, but not noted in the database as it [they] is/are 
installed AGAIN within an hour or two (in this instance)

(script reinstall-1  pkg install foo bar foo bar)
(script reinstall-2  pkg install foo bar foo bar)

So maybe once an extracting is done, the db should be 
written out as having been done, despite other ports in the
queue line.  So each extract would only be done once.

This inconsistency AFAIK never existed before pkg came into
being so is sort of a major regression... not serious if one
knows about it, maybe, but in production environments and for
the inexperienced ...
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2016-05-22 15:23:32 UTC
fixed in 1.8
Comment 2 Franco Fichtner 2016-05-22 15:26:05 UTC
nice one! :)