diff options
Diffstat (limited to 'bitbake/lib/prserv/db.py')
-rw-r--r-- | bitbake/lib/prserv/db.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/prserv/db.py b/bitbake/lib/prserv/db.py index 36c9f7b630..2a86184170 100644 --- a/bitbake/lib/prserv/db.py +++ b/bitbake/lib/prserv/db.py | |||
@@ -231,6 +231,14 @@ class PRTable(object): | |||
231 | datainfo.append(col) | 231 | datainfo.append(col) |
232 | return (metainfo, datainfo) | 232 | return (metainfo, datainfo) |
233 | 233 | ||
234 | def dump_db(self, fd): | ||
235 | writeCount = 0 | ||
236 | for line in self.conn.iterdump(): | ||
237 | writeCount = writeCount + len(line) + 1 | ||
238 | fd.write(line) | ||
239 | fd.write('\n') | ||
240 | return writeCount | ||
241 | |||
234 | class PRData(object): | 242 | class PRData(object): |
235 | """Object representing the PR database""" | 243 | """Object representing the PR database""" |
236 | def __init__(self, filename, nohist=True): | 244 | def __init__(self, filename, nohist=True): |