[ 
http://opencast.jira.com/browse/MH-8498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=29182#comment-29182
 ] 

Adam McKenzie commented on MH-8498:
-----------------------------------

Hi Ruediger,



Example input:
<td class="autoindex_td">
   <a class="autoindex_a" 
href="/downloads/linux/index.php?dir=&amp;file=vga2usb-3.24.0.0-2.6.21.5-SDL.i686.tbz">
    <img width="16" height="16" alt="[tbz]" 
src="/index_icons/winxp/compressed.png" />
    vga2usb-3.24.0.0-2.6.21.5-SDL.i686.tbz 
   </a>
  </td>
The change I came up with is:
-           drivers=( $(grep "vga2usb" $FILE_NAME | sed 
's#^.*<a\s*href="\(.*\)".*>.*</a>.*$#\1#' | grep "$kernel_base") )
+           drivers=( $(grep "file=vga2usb" $FILE_NAME | tr "=" "\n" | tr "\"" 
"\n" | grep "vga2usb" | grep "$kernel_base") )

We grep for only the lines with the file=vga2usb so that it filters out the non 
vga2usb files and extra display lines. Then replace "=" and " "  with newline 
characters so that the filename is by itself then search for vga2usb once 
again. Seems to work as intended.


                
> Matterhorn 1.3 capture agent does not install
> ---------------------------------------------
>
>                 Key: MH-8498
>                 URL: http://opencast.jira.com/browse/MH-8498
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Capture (Devices and Software)
>    Affects Versions: 1.2.1, 1.3, 1.4
>            Reporter: Jonathan Felder
>            Assignee: Adam McKenzie
>            Priority: Blocker
>             Fix For: 1.2.1, 1.3, 1.4
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to