From 69a046ec883b89df2cb2b1f0eaac3cd23ac20075 Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Fri, 4 Aug 2023 10:46:52 +0200 Subject: [PATCH] More entries in the feed --- registries/copy-and-convert.sh | 5 +++-- registries/lsr2atom.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/registries/copy-and-convert.sh b/registries/copy-and-convert.sh index 4735538..6f74b41 100755 --- a/registries/copy-and-convert.sh +++ b/registries/copy-and-convert.sh @@ -16,6 +16,7 @@ else TMPDIFF=`mktemp` fi MAINTAINER=bortzmeyer@langtag.net +ME=$(hostname -f) # Conversions CONVERT_XML_BORTZMEYER=${PROGRAMS_DIR}/registry2xml @@ -59,7 +60,7 @@ if [ -e ${LTR_LOCAL}.TMP ]; then if [ -e ${LTR_LOCAL} ]; then diff -u ${LTR_LOCAL} ${LTR_LOCAL}.TMP > $TMPDIFF if [ ! -z $TMPDIFF ]; then - mutt -s "New LTR registry at ${MYURL}" ${MAINTAINER} < $TMPDIFF + mutt -s "New LTR registry at ${MYURL} seen on ${ME}" ${MAINTAINER} < $TMPDIFF fi fi mv ${LTR_LOCAL}.TMP ${LTR_LOCAL} @@ -84,7 +85,7 @@ if [ -e ${LTR_LOCAL}.TMP ]; then echo $version > ${LTR_LOCAL}-version exit 0 else - cat ${OUTPUT} | mutt -s "Invalid registry ${LTR_URL}" ${MAINTAINER} + cat ${OUTPUT} | mutt -s "Invalid registry ${LTR_URL} seen on ${ME}" ${MAINTAINER} exit 1 fi else # File not downloaded, probably because there was nothing new. diff --git a/registries/lsr2atom.py b/registries/lsr2atom.py index 7663820..7db6f57 100755 --- a/registries/lsr2atom.py +++ b/registries/lsr2atom.py @@ -14,7 +14,7 @@ import datetime # External libraries import psycopg2 -max = 10 +max = 30 db_module = psycopg2