Skip to content

Deleting archives does not actually remove them from the cached list of archives #58

@jeffwidman

Description

@jeffwidman

tarsnapper caches the output of tarsnap --list-archives.

So when tarsnapper expires an archives, it also deletes it from the cache:

self.archives.remove(name)

However, self.archives is actually a property, which concatenates two lists and then returns them:

return self._queried_archives + self._known_archives
archives = property(get_archives)

So the self.archives.remove call is pointless because it only removes the filename from the temporary list created for that specific call to self.archives... it never actually removes the filename from the underlying cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions