SPECS: fetchsrc_request - add some verbosity and add .spec extensi...

glen glen at pld-linux.org
Thu May 18 22:02:49 CEST 2006


Author: glen                         Date: Thu May 18 20:02:49 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add some verbosity and add .spec extension if missing

---- Files affected:
SPECS:
   fetchsrc_request (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/fetchsrc_request
diff -u SPECS/fetchsrc_request:1.13 SPECS/fetchsrc_request:1.14
--- SPECS/fetchsrc_request:1.13	Sat Jun 18 22:01:22 2005
+++ SPECS/fetchsrc_request	Thu May 18 22:02:44 2006
@@ -38,8 +38,13 @@
 else
 	BRANCH="HEAD"
 fi
+SPEC="$1"
+if [[ "$SPEC" != *.spec ]]; then
+	SPEC="$SPEC.spec"
+fi
 
 if [ "$VIA" = "SENDMAIL" ]; then
+	echo >&2 "Requesting $SPEC:$BRANCH via sendmail${VIA_ARGS:+ ($VIA_ARGS)}"
 	cat <<EOF | /usr/sbin/sendmail -t $VIA_ARGS 
 To: $DMAIL
 From: $LOGIN <$LOGIN@$HOST>
@@ -47,12 +52,13 @@
 X-CVS-Module: SPECS
 X-distfiles-request: yes
 X-Login: $LOGIN
-X-Spec: $1
+X-Spec: $SPEC
 X-Branch: $BRANCH
 X-Flags: force-reply
 .
 EOF
 else
+	echo >&2 "Requesting $SPEC:$BRANCH via SMTP ($VIA:25)"
 	cat <<EOF | /usr/bin/nc $VIA 25 > /dev/null
 EHLO $HOST
 MAIL FROM: $LOGIN <$LOGIN@$HOST>
@@ -63,7 +69,7 @@
 X-CVS-Module: SPECS
 X-distfiles-request: yes
 X-Login: $LOGIN
-X-Spec: $1
+X-Spec: $SPEC
 X-Branch: $BRANCH
 X-Flags: force-reply
 .
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/fetchsrc_request?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list