[Pkg] The Trunk: Files-nice.175.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 6 22:06:48 UTC 2017

Nicolas Cellier uploaded a new version of Files to project The Trunk:

==================== Summary ====================

Name: Files-nice.175
Author: nice
Time: 6 December 2017, 11:06:36.405817 pm
UUID: f8c4858f-bd11-425d-86e7-32e4f353f43d
Ancestors: Files-tpr.174

Workaround for truncated readOnlyCopy of .changes log file on linux.

On linux, the latest bytes written to the change log are not allways taken into account when we create a readOnlyCopy.

The readOnlyCopy then appear as truncated.
This can cause an infinite loop in MCMockPackageInfo(PackageInfo)>>changeRecordForOverriddenMethod:

See https://github.com/hpi-swa/smalltalkCI/issues/350

=============== Diff against Files-tpr.174 ===============

Item was changed:
  ----- Method: StandardFileStream>>readOnlyCopy (in category 'read, write, position') -----
+ 	self flush.	"Some linux open a truncated readOnlyCopy. Force it to take latest bytes written into account."
  	^ self class readOnlyFileNamed: self name.

More information about the Packages mailing list