diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-04-26 09:16:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-27 15:12:57 +0100 |
commit | ad5c898808606464d88b4e024c690bfbe9c608a0 (patch) | |
tree | 2dccaed5f6b416257273bc2642952cbaf4b6cade /bitbake/lib | |
parent | ea647326d1370f942083566a0ebb171258e4ab7e (diff) | |
download | poky-ad5c898808606464d88b4e024c690bfbe9c608a0.tar.gz |
bitbake: prserv: Drop unused dump_db method
(Bitbake rev: ecb7bf34eac02ff58dbc27b3768ceaf4adb1c9cd)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/prserv/serv.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py index 1cfbba864a..6ccc7ee9e2 100644 --- a/bitbake/lib/prserv/serv.py +++ b/bitbake/lib/prserv/serv.py | |||
@@ -56,7 +56,6 @@ class PRServer(SimpleXMLRPCServer): | |||
56 | self.register_function(self.quit, "quit") | 56 | self.register_function(self.quit, "quit") |
57 | self.register_function(self.ping, "ping") | 57 | self.register_function(self.ping, "ping") |
58 | self.register_function(self.export, "export") | 58 | self.register_function(self.export, "export") |
59 | self.register_function(self.dump_db, "dump_db") | ||
60 | self.register_function(self.importone, "importone") | 59 | self.register_function(self.importone, "importone") |
61 | self.register_introspection_functions() | 60 | self.register_introspection_functions() |
62 | 61 | ||
@@ -118,26 +117,6 @@ class PRServer(SimpleXMLRPCServer): | |||
118 | logger.error(str(exc)) | 117 | logger.error(str(exc)) |
119 | return None | 118 | return None |
120 | 119 | ||
121 | def dump_db(self): | ||
122 | """ | ||
123 | Returns a script (string) that reconstructs the state of the | ||
124 | entire database at the time this function is called. The script | ||
125 | language is defined by the backing database engine, which is a | ||
126 | function of server configuration. | ||
127 | Returns None if the database engine does not support dumping to | ||
128 | script or if some other error is encountered in processing. | ||
129 | """ | ||
130 | buff = io.StringIO() | ||
131 | try: | ||
132 | self.table.sync() | ||
133 | self.table.dump_db(buff) | ||
134 | return buff.getvalue() | ||
135 | except Exception as exc: | ||
136 | logger.error(str(exc)) | ||
137 | return None | ||
138 | finally: | ||
139 | buff.close() | ||
140 | |||
141 | def importone(self, version, pkgarch, checksum, value): | 120 | def importone(self, version, pkgarch, checksum, value): |
142 | return self.table.importone(version, pkgarch, checksum, value) | 121 | return self.table.importone(version, pkgarch, checksum, value) |
143 | 122 | ||
@@ -335,9 +314,6 @@ class PRServerConnection(object): | |||
335 | def export(self,version=None, pkgarch=None, checksum=None, colinfo=True): | 314 | def export(self,version=None, pkgarch=None, checksum=None, colinfo=True): |
336 | return self.connection.export(version, pkgarch, checksum, colinfo) | 315 | return self.connection.export(version, pkgarch, checksum, colinfo) |
337 | 316 | ||
338 | def dump_db(self): | ||
339 | return self.connection.dump_db() | ||
340 | |||
341 | def importone(self, version, pkgarch, checksum, value): | 317 | def importone(self, version, pkgarch, checksum, value): |
342 | return self.connection.importone(version, pkgarch, checksum, value) | 318 | return self.connection.importone(version, pkgarch, checksum, value) |
343 | 319 | ||