summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-07-20 07:08:37 +0100
committerLars Wirzenius <liw@liw.fi>2011-07-20 07:08:37 +0100
commit77beef4611c4365f69163ab8b575ad3d7d740cff (patch)
treeeac03f3a6535f7326a615d2c1a9c6e7d4b141f44 /seivot
parent08f90669dc744265b9097921ee88aede1208f165 (diff)
downloadseivot-77beef4611c4365f69163ab8b575ad3d7d740cff.tar.gz
Use cp(1) instead of shutil.copytree, to deal with real data.
copytree failed on Unix sockets.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot4
1 files changed, 2 insertions, 2 deletions
diff --git a/seivot b/seivot
index df9388f..d986fbf 100755
--- a/seivot
+++ b/seivot
@@ -383,8 +383,8 @@ class Seivot(cliapp.Application):
if self.settings['use-existing']:
if os.path.exists(self.live_data):
shutil.rmtree(self.live_data)
- shutil.copytree(self.settings['use-existing'], self.live_data,
- symlinks=True)
+ self.runcmd(['cp', '-a', self.settings['use-existing'],
+ self.live_data])
amount = self.file_sizes(self.live_data)
else:
amount = self.settings['initial-data']