Commit ec8b5d8e authored by Samuel GAIST's avatar Samuel GAIST

[database] Remove use of Prefix

New beat.cmdline tests don't need it anymore
parent 845b4ccb
......@@ -502,12 +502,9 @@ class Database(object):
if not self.valid:
raise RuntimeError("database is not valid")
if isinstance(prefix, six.string_types):
prefix = utils.Prefix(prefix)
if prefix.paths[0] in self.prefix.paths:
raise RuntimeError("Cannot export database to the same prefix (%s in " \
"%s)" % (prefix.paths[0], self.prefix.paths))
if prefix == self.prefix:
raise RuntimeError("Cannot export database to the same prefix ("
"%s)" % prefix)
for k in self.dataformats.values():
k.export(prefix)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment