diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-07-20 07:08:37 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-07-20 07:08:37 +0100 |
commit | 77beef4611c4365f69163ab8b575ad3d7d740cff (patch) | |
tree | eac03f3a6535f7326a615d2c1a9c6e7d4b141f44 | |
parent | 08f90669dc744265b9097921ee88aede1208f165 (diff) | |
download | seivot-77beef4611c4365f69163ab8b575ad3d7d740cff.tar.gz |
Use cp(1) instead of shutil.copytree, to deal with real data.
copytree failed on Unix sockets.
-rwxr-xr-x | seivot | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'] |