Update of /cvsroot/freevo/freevo/src/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv882/src/config

Modified Files:
        rom_drives.py 
Log Message:
patch from crunchy: respect comments

Index: rom_drives.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config/rom_drives.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** rom_drives.py       28 Nov 2004 17:31:24 -0000      1.1
--- rom_drives.py       7 Dec 2004 16:07:42 -0000       1.2
***************
*** 24,29 ****
--- 24,34 ----
          re_bymountcd = re.compile( '^(/dev/[^ \t]+)[ \t]+([^ ]*cdrom[0-9]*)[ 
\t]+', re.I )
          re_bymountdvd= re.compile( '^(/dev/[^ \t]+)[ \t]+([^ ]*dvd[0-9]*)[ 
\t]+', re.I )
+         re_comment= re.compile( '^[ \t]*#', re.I )
          fd_fstab = open('/etc/fstab')
          for line in fd_fstab:
+           # if the line starts with a comment it can be ignored
+           if re_comment.match( line ):
+               continue
+           
              # Match on the devices /dev/cdrom, /dev/dvd, and fstype iso9660
              match_cd        = re_cd.match(line)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to