Freevo2 patch for tvserver --scan when no devices are found

John Molohan <[email protected]>
Newsgroups gmane.comp.video.freevo.devel
Message-ID <[email protected]>
  Hi,

Currently the tvserver --scan option returns nothing if it fails to find 
a device. The below patch gives some feedback to the user.

John

[john@localhost tvserver]$ diff -Naur ../bin/tvserver.orig ../bin/tvserver
--- ../bin/tvserver.orig        2010-08-05 23:25:52.596497816 +0100
+++ ../bin/tvserver     2010-08-05 23:24:24.855122615 +0100
@@ -114,6 +114,8 @@
          for info in tvserver.devices.info:
              print '*** %s ***' % info.device
              print info
+       if not tvserver.devices.info:
+           print 'No devices found, sorry.'
          sys.exit(0)
      if o in ('--help', '-h'):
          usage(0)


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.