[linux] 02/17: debian_linux.utils: Support templates for RFC822 files other than debian/control
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sat Oct 31 22:18:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux.
commit 9c8d371306ec4d01456faba55188fc8ac1413c6e
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 5f34b6e..a7d4b1d 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