[linux] 01/12: debian_linux.utils: Support templates for RFC822 files other than debian/control
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Thu Aug 13 13:23:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch benh/autopkgtest
in repository linux.
commit dc8f00e9930403c2cff0c1a9fd4b76cc8cc2fb1d
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Tue Aug 11 23:25:51 2015 +0200
debian_linux.utils: Support templates for RFC822 files other than debian/control
---
debian/lib/python/debian_linux/utils.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/debian/lib/python/debian_linux/utils.py b/debian/lib/python/debian_linux/utils.py
index 454d7c8..d6b9766 100644
--- a/debian/lib/python/debian_linux/utils.py
+++ b/debian/lib/python/debian_linux/utils.py
@@ -40,12 +40,14 @@ class Templates(object):
def read_control(f):
from .debian import Package
+ return _read_rfc822(f, Package)
+def _read_rfc822(f, cls):
entries = []
eof = False
while not eof:
- e = Package()
+ e = cls()
last = None
lines = []
while True:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list