The introduction of the orig-base file makes the stack deletion fail
to remove the stack's directory, leaving the stack in a zombie state,
where attempting to recreate it was refused because of the directory
already existing, but attempting to delete it failed since the applied
and unapplied files were not found.
Signed-off-by: Yann Dirson <ydirson@altern.org>
os.remove(self.__current_file)
if os.path.exists(self.__descr_file):
os.remove(self.__descr_file)
os.remove(self.__current_file)
if os.path.exists(self.__descr_file):
os.remove(self.__descr_file)
+ if os.path.exists(self._dir()+'/orig-base'):
+ os.remove(self._dir()+'/orig-base')
if not os.listdir(self.__patch_dir):
os.rmdir(self.__patch_dir)
else:
if not os.listdir(self.__patch_dir):
os.rmdir(self.__patch_dir)
else: