[pkg-perl-tools] 02/02: scripts/alioth-author: remove conditional use of curl/wget now that curl is a dependency

dom at earth.li dom at earth.li
Sat Aug 26 13:49:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

dom pushed a commit to branch master
in repository pkg-perl-tools.

commit 8f8cf0adab364037e51b8dc575fd49d61a70d67e
Author: Dominic Hargreaves <dom at earth.li>
Date:   Sat Aug 26 14:47:18 2017 +0100

    scripts/alioth-author: remove conditional use of curl/wget now that curl is a dependency
---
 debian/changelog      | 2 ++
 scripts/alioth-author | 8 +-------
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8b331f8..8384dce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ pkg-perl-tools (0.40) UNRELEASED; urgency=medium
 
   [ Dominic Hargreaves ]
   * Add missing dependency on curl
+  * scripts/alioth-author: remove conditional use of curl/wget now that
+    curl is a dependency
 
  -- gregor herrmann <gregoa at debian.org>  Fri, 18 Aug 2017 17:48:10 +0200
 
diff --git a/scripts/alioth-author b/scripts/alioth-author
index 7ccbef4..662cea8 100755
--- a/scripts/alioth-author
+++ b/scripts/alioth-author
@@ -35,14 +35,8 @@ if [ -z "$full_name" ]; then
     fi
 fi
 
-if which curl > /dev/null; then
-	CURL='curl -s'
-else
-	CURL='wget -q -O -'
-fi
-
 if echo $author | grep -E -q -e '-guest$'; then
-    email=`$CURL http://alioth.debian.org/users/$author/ | grep sendmessage|grep touser|grep nospam|sed 's,.*<strong>.*<a href[^>]\+>,,; s/<.*//; s/ @nospam@ /@/'`;
+    email=`curl -s http://alioth.debian.org/users/$author/ | grep sendmessage|grep touser|grep nospam|sed 's,.*<strong>.*<a href[^>]\+>,,; s/<.*//; s/ @nospam@ /@/'`;
     
     if [ -z "$email" ]; then
         email="$author at users.alioth.debian.org";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list