File dd_rhelp_EOF_Summary.diff of Package dd_rescue.deb

Index: dd_rhelp-0.3.0/dd_rhelp
===================================================================
--- dd_rhelp-0.3.0.orig/dd_rhelp
+++ dd_rhelp-0.3.0/dd_rhelp
@@ -986,9 +986,9 @@ infoline="^dd_rescue: (info):"
 summary_first_line="$infoline \+ipos:.*, opos:.*, xferd:.*$"
 
 ## infoline has been added to Summary line in dd_rescue output recently (> 1.14, <= 1.25)
 string="\($infoline\)\? *Summary for [^:]\+ -> [^:]\+:\$"
-eofstring="$infoline [^(]\+ ([0-9]\+\.[0-9]k): EOF\$"
+eofstring="$infoline [^(]\+ ([0-9]\+\.[0-9]k[^)]*): EOF.*\$"
 nb_stars=$[ $bar_lines * $COLUMNS ] # nb of char to display progress bar...
 badblockline_regexp="^Bad block: [0-9]\+\$"
 
 
@@ -1082,9 +1082,9 @@ function get_eof() {
     else
 	eoflines="$1"
     fi
 
-    eoflines=$(echo "$eoflines" | "${grep}" "$eofstring" | sed_compat 's/^dd_rescue: \(info\): .* \(([0-9\.]+)k\): EOF.*$/\1/g')
+    eoflines=$(echo "$eoflines" | "${grep}" "$eofstring" | sed_compat 's/^dd_rescue: \(info\): .* \(([0-9\.]+)k[^\)]*\): EOF.*$/\1/g')
 
     for i in $eoflines; do
 
         ## XXXvlab: what the f*ck ?
@@ -1746,7 +1746,7 @@ function process_log() {
 
     ## Remove first line of summaries that had 0.0k transfered. (They are useless)
     # XXXVaab : bad if file is less that 0.1Ko length
-    data=$(echo "$data" | "${grep}" -v "xferd: \+0.0k$")
+    data=$(echo "$data" | "${grep}" -v "xferd: \+0.0k$" | "${grep}" -v "$string")
     [ "$DEBUG" == "on" ] && echo -n "."
 
 
openSUSE Build Service is sponsored by