projg2 / eselect-repository

An eselect module to manage repos.conf (i.e. layman replacement)
20 stars 8 forks source link

TypeError: strxfrm() argument 1 must be str, not None #3

Closed MeisterP closed 6 years ago

MeisterP commented 6 years ago

I get the following error with the list command:

eselect repository list 
Available repositories:
Traceback (most recent call last):
  File "/usr/lib/eselect-repo/eselect-repo-helper", line 145, in <module>
    main()
  File "/usr/lib/eselect-repo/eselect-repo-helper", line 135, in main
    do_list(args)
  File "/usr/lib/eselect-repo/eselect-repo-helper", line 37, in do_list
    key=lambda x: locale.strxfrm(x.findtext('name'))):
  File "/usr/lib/eselect-repo/eselect-repo-helper", line 37, in <lambda>
    key=lambda x: locale.strxfrm(x.findtext('name'))):
TypeError: strxfrm() argument 1 must be str, not None
!!! Error: helper failed to run
exiting

emerge-info.txt repository.conf.txt

mgorny commented 6 years ago

Looks like it doesn't handle comments well. Will fix in a minute.

mgorny commented 6 years ago

If you could test -9999 and confirm it's fixed, I'll appreciate. I'll make a release later today.

MeisterP commented 6 years ago

Yes, it's working fine with app-eselect/eselect-repository-9999 indeed.