Changed files:
builder.sh -> 1.159
echo "$DISTFILES_SERVER/by-md5/$(src_md5 "$1" | sed -e 's|^\(.\)\(.\)|\1/\2/&|')/$(basename "$1")"
}
+good_md5 ()
+{
+ md5=$(src_md5 "$1")
+ [ "$md5" = "" ] || \
+ [ "$md5" = "$(md5sum $(nourl "$1") 2> /dev/null | sed -e 's/ .*//')" ]
+}
+
get_files()
{
GET_FILES="$@"
fi
if [ -n "$(src_md5 "$i")" ] && [ -z "$NODIST" ]; then
- if [ "$(src_md5 "$i")" = "$(md5sum $(nourl "$i") 2> /dev/null | sed -e 's/ .*//')" ]; then
+ if good_md5 "$i"; then
echo "$(nourl "$i") having proper md5sum already exists"
continue
fi
print unless /^\s*#\s*Source'$srcno'-md5\s*:/i' \
$SPECS_DIR/$SPECFILE
fi
+
+ if good_md5 "$i"; then
+ :
+ else
+ echo "MD5 sum mismatch. Use -U to refetch sources,"
+ echo "or -5 to update md5 sums, if you're sure files are correct."
+ Exit_error err_no_source_in_repo $i
+ fi
fi
done