rpmsafereduce: revert
[nethome.git] / bin / changelogget
index b59b87d..578f1d5 100755 (executable)
@@ -21,6 +21,7 @@ function formatpatch
 if [ "$*" = "-f" ];then
        formatpatch
 else for arg in "$@";do
+       arg="$(echo "$arg"|sed 's/^https:/http:/')"
        # http://sourceware.org/ml/gdb-cvs/2099-99/msg99999.html
        if [ "$arg" != "${arg#http://sources.redhat.com/}" ];then
                arg="http://sourceware.org/${arg#http://sources.redhat.com/}"
@@ -29,7 +30,7 @@ else for arg in "$@";do
                echo >&2 -n '+'
                echo "$arg"
                echo
-               changelogget -q $changelog $(wget -q -O - "$arg" | sed -n -e 's/&amp;/\&/g' -e 's#^<a \+href="\(.*\)">\1</a>$#\1#p')
+               changelogget -q $changelog $(wget -q -O - "$arg" | sed -n -e 's/&amp;/\&/g' -e 's#^<a \+\(rel="nofollow"\)\? *href="\(.*\)">\2</a>$#\2#p')
        elif [ "$arg" != "${arg#http://gcc.gnu.org/viewcvs[?]view=revision&revision=}" ];then
                echo >&2 -n '+'
                echo "$arg"