New: [rhinstaller/blivet/pulls/167 master] Master format copy b

mulkieran installerbot-noreply at redhat.com
Wed Jun 24 21:42:15 UTC 2015


This is an alternative to #165. The approach is to deepcopy all format objects when copying, instead of to define an ```__copy__``` method that handles tasks specially.

The first two patches are the same as in #165.

It's tested, in that I tried an experiment whereby I made a deep copy of all formats objects in fstesting.py and ran all tests on the deepcopy, rather than the original format object, and they all passed. Using copy, instead of deepcopy, they all failed. Using copy, and overriding ```__copy__``` in FS, they all passed.

It should be noted that format objects are already deep copied, rather than shallow copied, in actionlist.


-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/167


More information about the anaconda-patches mailing list