Re: [PATCH] No longer use HAL in list-harddrives.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Monday, August 03 2009, Chris Lumens said:
> > +    for dev in filter(lambda d: d.type <= parted.DEVICE_SX8, parted.getAllDevices()):
> 
> This line feels a little bit fragile -- what happens when parted adds a
> new device type?

We're screwed.

The reason for this lame hack is that parted.DEVICE_DM is not compiled
in, and yet some devices are still reporting the constant.  It was
either the above or hardcode the value of DEVICE_DM.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux