home *** CD-ROM | disk | FTP | other *** search
/ ftp.shrubbery.net / 2015-02-07.ftp.shrubbery.net.tar / ftp.shrubbery.net / pub / rancid / rancid-2.3.8.p2.gz / rancid-2.3.8.p2
Text File  |  2012-02-09  |  1KB  |  37 lines

  1. Index: bin/xrrancid.in
  2. ===================================================================
  3. --- bin/xrrancid.in    (revision 2396)
  4. +++ bin/xrrancid.in    (working copy)
  5. @@ -580,10 +580,16 @@
  6.      return(-1) if (/\%Error opening \S+:\S+ \(Device or resource busy\)/i);
  7.      return(-1) if (/command authorization failed/i);
  8.      return(1) if (/(Open device \S+ failed|Error opening \S+:)/);
  9. -    # filter frequently changing files from IOX bootflash
  10. -    if ($dev =~ /bootflash/) {
  11. -        next if (/temp_cont\s*$/);
  12. -        next if (/uptime_cont\s*$/);
  13. +    # filter frequently changing files from IOX bootflash / hardiska
  14. +    if ($dev =~ /(bootflash|harddiska)/) {
  15. +        if (/(temp_cont|uptime_cont|volt_cont)\s*$/) {
  16. +        if (/(\s*\d+\s+\S+\s+)(\d+)(\s+)(\w+ \w+\s+\d+ \d+:\d+:\d+ \d+)/) {
  17. +            my($a, $sz, $c, $dt, $rem) = ($1, $2, $3, $4, $');
  18. +            my($szl, $dtl) = (length($sz), length($dt));
  19. +            my($fmt) = "%s%-". $szl ."s%s%-". $dtl ."s%s";
  20. +            $_ = sprintf($fmt, $a, "", $c, "", $rem);
  21. +        }
  22. +        }
  23.      }
  24.      # Filter dhcp database
  25.      if (/dhcp_[^. ]*\.txt/) {
  26. Index: CHANGES
  27. ===================================================================
  28. --- CHANGES    (revision 2396)
  29. +++ CHANGES    (working copy)
  30. @@ -1,4 +1,6 @@
  31.  2.3.9
  32. +    xrrancid: additional file filters for 4.2
  33. +
  34.      hpuifilter: dont use memcpy for overlapping regions - David Byers
  35.  
  36.  2.3.8
  37.