Signed-off-by: Yann Dirson <ydirson@altern.org>
else:
print 'Patch directory %s is not empty.' % self.__patch_dir
else:
print 'Patch directory %s is not empty.' % self.__patch_dir
- if not os.listdir(self._dir()):
os.removedirs(self._dir())
os.removedirs(self._dir())
raise StackException, 'Series directory %s is not empty.' % self._dir()
raise StackException, 'Series directory %s is not empty.' % self._dir()
- if not os.listdir(self.__refs_dir):
os.removedirs(self.__refs_dir)
os.removedirs(self.__refs_dir)
print 'Refs directory %s is not empty.' % self.__refs_dir
if os.path.exists(self.__base_file):
print 'Refs directory %s is not empty.' % self.__refs_dir
if os.path.exists(self.__base_file):