aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-02-18 06:58:51 +0000
committerRob Austein <sra@hactrn.net>2013-02-18 06:58:51 +0000
commit9016fc3c7ca5ba922f039c1b67fcf70f7384155a (patch)
treed37fe0f7713de231b54726176944f66e7ca09630
parent5d31c2426db16c0746699979c6cf632c17b0805d (diff)
debuild et al are picky about format of email addresses.
For some reason debuild now cares about "make test" failing (which it always has on package builds, because of MySQL setup requirements, but debuild used to ignore that), so tweak rules to skip the test suite. svn path=/branches/tk377/; revision=5040
-rw-r--r--buildtools/debian-package-skeleton.py3
-rw-r--r--buildtools/hack-debian-changelog.py17
2 files changed, 18 insertions, 2 deletions
diff --git a/buildtools/debian-package-skeleton.py b/buildtools/debian-package-skeleton.py
index 19c64b8a..6eff5946 100644
--- a/buildtools/debian-package-skeleton.py
+++ b/buildtools/debian-package-skeleton.py
@@ -519,6 +519,9 @@ export DH_VERBOSE=1
override_dh_auto_configure:
dh_auto_configure -- --disable-target-installation
+
+override_dh_auto_test:
+ @true
''')
os.makedirs('debian/source')
diff --git a/buildtools/hack-debian-changelog.py b/buildtools/hack-debian-changelog.py
index 25f41f88..d46ea1d1 100644
--- a/buildtools/hack-debian-changelog.py
+++ b/buildtools/hack-debian-changelog.py
@@ -41,6 +41,16 @@ ignore_trivial_changes = False
trivial_changes = ("Pull from trunk.", "Merge from trunk.", "Checkpoint.", "Cleanup.")
+# Fill this in (somehow) with real email addresses if and when we
+# care. Right now we only care to the extent that failing to comply
+# with the required syntax breaks package builds.
+
+author_map = {}
+
+author_default_format = "%s <%s@rpki.net>"
+
+# Main
+
changelog = debian.changelog.Changelog()
try:
@@ -57,7 +67,7 @@ except IOError, e:
print "Pulling change list from subversion"
-svn = XML(subprocess.check_output(("svn", "log", "--xml", "--revision", "%s:HEAD" % (latest + 1))))
+svn = XML(subprocess.check_output(("svn", "log", "--xml", "--revision", "%s:COMMITTED" % (latest + 1))))
first_wrapper = textwrap.TextWrapper(initial_indent = " * ", subsequent_indent = " ")
rest_wrapper = textwrap.TextWrapper(initial_indent = " ", subsequent_indent = " ")
@@ -68,16 +78,19 @@ print "Generating new change entries"
for elt in svn.findall("logentry"):
msg = elt.findtext("msg")
+ author = elt.findtext("author")
if ignore_trivial_changes and (msg in trivial_changes or msg + "." in trivial_changes):
continue
+ author = author_map.get(author, author_default_format % (author, author))
+
changelog.new_block(
package = changelog.package,
version = "0." + elt.get("revision"),
distributions = changelog.distributions,
urgency = changelog.urgency,
- author = elt.findtext("author") + "@rpki.net",
+ author = author,
date = email.utils.formatdate(calendar.timegm(time.strptime(elt.findtext("date"),
"%Y-%m-%dT%H:%M:%S.%fZ"))))
changelog.add_change("\n\n".join((rest_wrapper if i else first_wrapper).fill(s)