Skip to content

Commit 41c47b3

Browse files
committed
Merged in [10684] from lars@netapp.com:
Add warning about the accuracy of bibliographic information for Legacy RFCs. - Legacy-Id: 10688 Note: SVN reference [10684] has been migrated to Git commit 2ca2b92
1 parent 73ba191 commit 41c47b3

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

bin/mergeready

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,18 @@ def pipe(cmd, inp=None):
125125
return out
126126

127127
def split_loginfo(line):
128-
parts = line.split()
129-
rev = parts[0][1:]
130-
who = parts[2]
131-
date = parts[4]
132-
time = parts[5]
133-
tz = parts[6]
134-
when = tzparse.tzparse(" ".join(parts[4:7]), "%Y-%m-%d %H:%M:%S %Z")
135-
when = when.astimezone(pytz.utc)
128+
try:
129+
parts = line.split()
130+
rev = parts[0][1:]
131+
who = parts[2]
132+
date = parts[4]
133+
time = parts[5]
134+
tz = parts[6]
135+
when = tzparse.tzparse(" ".join(parts[4:7]), "%Y-%m-%d %H:%M:%S %Z")
136+
when = when.astimezone(pytz.utc)
137+
except ValueError as e:
138+
sys.stderr.write("Bad log line format: %s\n %s\n" % (line, e))
139+
136140
return rev, who, when
137141

138142
# ----------------------------------------------------------------------

ietf/templates/doc/document_bibtex.bib

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
{% load ietf_filters %}
44
55
{% if doc.get_state_slug == "rfc" %}
6+
{% if doc.stream|slugify == "legacy" %}
7+
% Datatracker information for RFCs on the Legacy Stream is unfortunately often
8+
% incorrect. Please correct the bibtex below based on the information in the
9+
% actual RFC at https://rfc-editor.org/rfc/rfc{{ doc.rfc_number }}.txt
10+
{% endif %}
611
@misc{% templatetag openbrace %}rfc{{ doc.rfc_number }},
712
series = {Request for Comments},
813
number= {{ doc.rfc_number }},

0 commit comments

Comments
 (0)