https://bugs.gpodder.org/show_bug.cgi?id=107

--- Comment #11 from Thomas Perl <[email protected]> 2012-10-16 09:41:36 BST ---
(In reply to comment #10)
> (En réponse au commentaire 9)
> > Implemented now, feedback appreciated: http://gpodder.org/commit/e3f53600
> 
> fine, but can we get rid of the annoying popup on automatic refresh when
> offline is detected ?

I intended to do that, but on second look, I forgot the "return" after the line
"logger.debug('Skipping auto update (no connection available)')". Fixed now,
thanks for the feedback:

http://gpodder.org/commit/665ca1f2

> def osx_get_active_interfaces():
>     """Get active network interfaces using 'ifconfig'
> 
>     Returns a list of active network interfaces or an
>     empty list if the device is offline. The loopback
>     interface is not included.
>     """
>     stdout = subprocess.check_output(['ifconfig'])
>     itfs = re.split('\n(?!\t)',stdout,re.MULTILINE)
>     active = []
>     for i in  itfs:
>         b=re.match('(\\w+):.*status: active$', i, re.MULTILINE | re.DOTALL)
>         if b is not None:
>             active.append(b.group(1))
>     return active

I'll gladly merge this - have you tested this? If not, can you test it and tell
me that it works? I'll add it in then :)

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to