File dd_r_version.diff of Package dd_rhelp

Index: dd_rhelp-0.3.0/dd_rhelp
===================================================================
--- dd_rhelp-0.3.0.orig/dd_rhelp
+++ dd_rhelp-0.3.0/dd_rhelp
@@ -1039,8 +1039,9 @@ function get_valid_dd_rescue() {
 #     fi
 
 
     version=$("$path" -V 2>&1 | "${grep}" "dd_rescue Version" | "$cut" -f 3 -d " " | "$cut" -f 1 -d ",")
+    version=$(echo "$version" | "$sed" 's/\([0-9]*\)\.\([0-9]*\).*/\1.\2/') 
 
     ## Could get something as version info ?
 
     if test -z "$version" || ! is_num "$version" ; then
openSUSE Build Service is sponsored by