]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- add some verbosity and add .spec extension if missing
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 18 May 2006 20:02:44 +0000 (20:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fetchsrc_request -> 1.14

fetchsrc_request

index 6d8f7f7dec3719805633f044bfead1d2f5e6362b..bfb182272b00e78e7e2f20a9f20f90d8cd23e09d 100644 (file)
@@ -38,8 +38,13 @@ if [ "$2" != "" ]; then
 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 @@ Subject: fetchsrc_request notify
 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 @@ Subject: fetchsrc_request notify
 X-CVS-Module: SPECS
 X-distfiles-request: yes
 X-Login: $LOGIN
-X-Spec: $1
+X-Spec: $SPEC
 X-Branch: $BRANCH
 X-Flags: force-reply
 .
This page took 0.452341 seconds and 4 git commands to generate.