italc-launcher patch for avoiding duplicate entries
Stéphane Graber
stgraber at ubuntu.com
Fri Aug 21 02:25:18 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alkis Georgopoulos wrote:
> Στις 20-08-2009, ημέρα Πεμ, και ώρα 08:17 -0400, ο/η Stéphane Graber
> έγραψε:
>> Hi Alkis, are lines exactly duplicates ?
>> If so, the following diff should work:
>
> No, they aren't; the IP of eth0 is different than that of eth1. E.g.
> hosts[0]= ['10.160.31.10:5900', 1, 'alkis']
> hosts[1]= ['10.160.31.10:10131', 1, 'alkis']
> hosts[2]= ['192.168.0.1:5900', 1, 'alkis']
> hosts[3]= ['192.168.0.1:10131', 1, 'alkis']
>
> Additionally, set(hosts) complains:
> TypeError: unhashable type: 'list'
Hi,
Could you try the attached patch ?
The issue with your change is that it will only work for one NIC, so if
for example you have regular desktops on both NICs, you will only be
able to see the ones on connected on the first NIC.
My patch simply ensure that all ICA running on localhost will appear as
127.0.0.1 and that there are no duplicate in the final list. That should
fix your issue.
- --
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqOBY4ACgkQjxyfqkjBhuyfzgCcD+71P6EwmEIu1TtgM1iy5O+n
HzsAn1ml8w8kIejU8rc+2qd7rsQZhDL1
=RiIE
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <https://lists.ubuntu.com/archives/edubuntu-devel/attachments/20090820/75a7f24a/attachment.ksh>
More information about the edubuntu-devel
mailing list