Ok, pushed to master... Sorry guys for the pyudev mess, I hope there will be no more problems. -- Martin Gracik ----- "Hans de Goede" <hdegoede@xxxxxxxxxx> wrote: > Ack. > > On 02/03/2010 09:42 AM, Martin Gracik wrote: > > Some of the values which are returned by udev are strings, > > which contain more values for the same key. > > The string format is "val1 key=val2 key=val3 ...". > > This fix makes sure we split this string into a list of values. > > --- > > pyudev.py | 5 +++++ > > 1 files changed, 5 insertions(+), 0 deletions(-) > > > > diff --git a/pyudev.py b/pyudev.py > > index 6ab5d30..e51ee33 100644 > > --- a/pyudev.py > > +++ b/pyudev.py > > @@ -145,6 +145,11 @@ class UdevDevice(dict): > > name = > libudev_udev_list_entry_get_name(property_entry) > > value = > libudev_udev_list_entry_get_value(property_entry) > > > > + # XXX some of the strings contain a list of values in > them, > > + # we want to split them and make a list > > + if value.count(" %s=" % name): > > + value = value.split(" %s=" % name) > > + > > self[name] = value > > > > # get next property entry > > _______________________________________________ > Anaconda-devel-list mailing list > Anaconda-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/anaconda-devel-list _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list