backport fix from upstream git to unbreak sending mail

This commit is contained in:
jasper 2014-09-15 08:21:39 +00:00
parent a5b7241457
commit d43c3f39b4
4 changed files with 38 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 2014/09/07 18:00:11 jasper Exp $
# $OpenBSD: Makefile,v 1.5 2014/09/15 08:21:39 jasper Exp $
COMMENT= OpenBSD ports tree version scanner
@ -6,6 +6,7 @@ GH_ACCOUNT= jasperla
GH_PROJECT= portroach
GH_TAGNAME= 1.1.1
GH_COMMIT= 9b7d9046d37e348a39faee767e5d8f3f6c816143
REVISION= 0
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME}
CATEGORIES= misc

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Portroach_SQL_pm,v 1.1 2014/09/15 08:21:39 jasper Exp $
--- Portroach/SQL.pm.orig Sun Sep 7 14:54:20 2014
+++ Portroach/SQL.pm Mon Sep 15 10:19:39 2014
@@ -308,7 +308,7 @@ $sql{maildata_select} =
$sql{portdata_findnewnew} =
q(SELECT name,cat,ver,newver
FROM portdata
- WHERE lower(maintainer) = lower(?)
+ WHERE lower(maintainer) LIKE ?
AND newver != ver
AND newver is not NULL
AND moved != true

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-portroach_pl,v 1.1 2014/09/15 08:21:39 jasper Exp $
--- portroach.pl.orig Mon Sep 15 10:20:00 2014
+++ portroach.pl Mon Sep 15 10:20:02 2014
@@ -1474,7 +1474,7 @@ sub MailMaintainers
while (my ($addr) = $sths{maildata_select}->fetchrow_array) {
my $msg;
my $ports = 0;
- $sths{portdata_findnewnew}->execute($addr);
+ $sths{portdata_findnewnew}->execute("%<${addr}>%");
$template->applyglobal({maintainer => lc $addr});
while (my $port = $sths{portdata_findnewnew}->fetchrow_hashref) {

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-templates_reminder_mail,v 1.1 2014/09/15 08:21:39 jasper Exp $
--- templates/reminder.mail.orig Sun Sep 7 14:54:20 2014
+++ templates/reminder.mail Mon Sep 15 10:19:26 2014
@@ -10,7 +10,7 @@ You will not be e-mailed again for any of the port/ver
below.
Full details can be found at the following URL:
-http://beta.inerd.com/portroach/%%(maintainer).html
+http://beta.inerd.com/portroach/
Port | Current version | New version