stable/gen-patch: Do not require 'backports' config section

svn path=/dists/sid/linux-2.6/; revision=17119
This commit is contained in:
Ben Hutchings 2011-03-25 13:10:34 +00:00
parent 9dfe1fc259
commit 1bd2120d0d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class GenPatch(object):
tag_out = "v%s" % self.version.complete
print tag_in, tag_out
backports = self.config[('backports',)]
backports = self.config.get(('backports',), {})
diff_filter = '-x Makefile'
if self.version.release == self.package_version.upstream:
diff_filter += ' ' + ' '.join("-x '%s'" % re.sub(r'/$', r'/*', path)