From: Michael Vrable Date: Mon, 17 Sep 2007 04:25:15 +0000 (-0700) Subject: When cleaning the cache of objects, don't be so verbose. X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=commitdiff_plain;h=315e528bb31f6a1abfda0bd1e3c81d982d6ead44 When cleaning the cache of objects, don't be so verbose. Change the command for cleaning from "rm -rv", dropping the "-v". --- diff --git a/lbs.py b/lbs.py index e3ca9ab..f0cae55 100644 --- a/lbs.py +++ b/lbs.py @@ -128,7 +128,7 @@ class ObjectStore: def cleanup(self): if self.cachedir is not None: # TODO: Avoid use of system, make this safer - os.system("rm -rv " + self.cachedir) + os.system("rm -rf " + self.cachedir) self.cachedir = None @staticmethod @@ -192,7 +192,7 @@ class ObjectStore: if segment in self.lru_list: self.lru_list.remove(segment) self.lru_list.append(segment) while len(self.lru_list) > self.CACHE_SIZE: - os.system("rm -rv " + os.path.join(self.cachedir, self.lru_list[0])) + os.system("rm -rf " + os.path.join(self.cachedir, self.lru_list[0])) self.lru_list = self.lru_list[1:] return open(path, 'rb').read()