On Fri, 08 Jan 2010 16:18:11 +0100, Patrick Schoenfeld wrote: > > Find attached a quick patch that adds "+ pending" if the bug is not > > yet tagged pending and $NMUDIFF_DELAY != 0. > thanks for the patch. Do you mind updating it against the latest > svn trunk? If you do I would most likely commit it.
I just did a `debcheckout devscripts' and took a look, the patch applies cleanly (after changing the name of the file to patch). For your convenience I'm attaching this version. Cheers, gregor -- .''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06 : :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe `- BOFH excuse #226: A star wars satellite accidently blew up the WAN.
Index: nmudiff.sh
===================================================================
--- nmudiff.sh (revision 2075)
+++ nmudiff.sh (working copy)
@@ -305,21 +305,19 @@
exit 1
fi
+TO_ADDRESSES_SENDMAIL=""
+TO_ADDRESSES_MUTT=""
+BCC_ADDRESS_SENDMAIL=""
+BCC_ADDRESS_MUTT=""
+TAGS=""
if [ "$NMUDIFF_NEWREPORT" = "yes" ]; then
TO_ADDRESSES_SENDMAIL="[email protected]"
TO_ADDRESSES_MUTT="[email protected]"
- BCC_ADDRESS_SENDMAIL=""
- BCC_ADDRESS_MUTT=""
TAGS="Package: $SOURCE
Version: $OLDVERSION
Severity: normal
-Tags: patch"
+Tags: patch pending"
else
- TO_ADDRESSES_SENDMAIL=""
- TO_ADDRESSES_MUTT=""
- BCC_ADDRESS_SENDMAIL="[email protected]"
- BCC_ADDRESS_MUTT="-b [email protected]"
- TAGS=""
for b in $CLOSES; do
TO_ADDRESSES_SENDMAIL="$TO_ADDRESSES_SENDMAIL,
[email protected]"
@@ -328,11 +326,19 @@
TAGS="$TAGS
tags $b + patch"
fi
+ if [ "$NMUDIFF_DELAY" != "0" ] && [ "`bts select bugs:$b tag:pending`" != "$b" ]; then
+ TAGS="$TAGS
+tags $b + pending"
+ fi
done
TO_ADDRESSES_SENDMAIL=$(echo "$TO_ADDRESSES_SENDMAIL" | tail -n +2)
- TAGS=$(echo "$TAGS" | tail -n +2)
- TAGS="$TAGS
+ if [ "$TAGS" != "" ]; then
+ TAGS=$(echo "$TAGS" | tail -n +2)
+ TAGS="$TAGS
thanks"
+ BCC_ADDRESS_SENDMAIL="[email protected]"
+ BCC_ADDRESS_MUTT="-b [email protected]"
+ fi
fi
TMPNAM="$( tempfile )"
signature.asc
Description: Digital signature
