Skip to content

UAS: Cleanup old files/folders when updating #121

Closed

Description

@fuzeman

Overwriting plugins can cause conflicts in some cases (example below), ideally an update should compare the currently installed plugin with the new version (zip) and delete any directories/files that have been removed.

Example

Example.bundle (v1.0.0)

Example.bundle
 - Contents
    - Code
       - [...]
 - Libraries
   - example
      - one
         - __init__.py

Example.bundle (v1.1.0)

Example.bundle
 - Contents
    - Code
       - [...]
 - Libraries
   - example
      - one.py

Result

Example.bundle
 - Contents
    - Code
       - [...]
 - Libraries
   - example
      - one
         - __init__.py
      - one.py

Attempting to import example.one will always return the example/one/__init__.py module, there is no way to access the updated module.


This was mentioned here as well: https://forums.plex.tv/discussion/comment/1106806/#Comment_1106806

Activity

  1. added this to the V2.2 milestone on Jan 18, 2016
  2. self-assigned this
    on Jan 18, 2016
  3. ukdtom commented on Jan 23, 2016

    @ukdtom
    Owner

    Fixed checked in
    cab8008

  4. added 2 commits that reference this issue on Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions