- Update dd_rhelp_EOF.diff to support dd_rescue-1.41+. OBS-URL: https://build.opensuse.org/request/show/225177 OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rhelp?expand=0&rev=8
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
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 ?
|