The problem : Saving a profile with gtkfe works but loading it again fails. The reason : It fails in the add_partitions_device_partition() methode of the InstallProfile class. The int conversion on the free partition minor fails. => part_entry['minor'] = int(part_entry['minor']) In case of a part_entry with type free, part_entry['minor'] returns a string like '2.03125'. A int conversion on such a string fails. I wrote a very tiny patch that checks the part type, if free it uses float() for conversion , if something else it uses int(). example : >>> mystring = '2.03125' >>> int(mystring) Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: invalid literal for int(): 2.03125 >>> float(mystring) 2.03125 >>> int(float(mystring)) 2 Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 61735 [details, diff] tiny patch against GLIInstallProfile.py tiny patch against GLIInstallProfile.py against snapshot 20050622
Instead of the int/float distinction, I just changed the int() to a float(). Representing a whole number with a float isn't a problem. Fixed in cvs. Thanks.
Moving to Release Media/Installer.