On Thu, Jan 12, 2006 at 11:56:03PM +0000, Julian Gilbey wrote:
> On Thu, Jan 12, 2006 at 09:46:11PM +0100, Filippo Giunchedi wrote:
> > The script assumes that PTS news only contain upload notices by
> > katie, while this is almost true, remember that PTS supports also
> > custom news by users and recently migration-to-testing notices by
> > britney
>
> True, but only to the extent that it will show a maximum of three
> uploads; I presume that the others (certainly true for britney
> notices) won't be GPG-signed?
I don't know if I can answer this perfectly, but I think it would be
sufficient to count the number of signed uploads; like:
while test $i -lt $maxnum; do
GPG_TEXT=...
test -n "$GPG_TEXT" || continue;
...
let ++i;
done;
If it is a real concern, then you can add an assertion after the
existing test -n:
echo "$GPG_TEXT" |sed -ne '/^Accepted:$/{n;p;}' |grep '\.deb$' || echo "Not
an upload! Please file a bug.";
--
Clear skies,
Justin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]