Active
Project:
Plugin Manager
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
14 Feb 2009 at 00:26 UTC
Updated:
2 Nov 2017 at 16:05 UTC
Jump to comment: Most recent
Comments
Comment #1
jabapyth commentedthats a great idea. although, what do you think should happen when plugin manager finds a file that *has* been modified? I think it would be fairly difficult to determine automatically whether to keep or delete it. In the 'normal' upgrade process (if one were to upgrade a module by hand) wouldn't the file be deleted anyway?
Or is this just to prevent deletion of modifications made *by hand*, eg w/ a text editor? In that case, is this really a valuable function? -- it seems that that would only be useful to developers, and might be confusing to the typical user.
Comment #2
gregglesNote that http://drupal.org/project/file_integrity does this already to some extent - could be something to just depend on or to copy code from.
Comment #3
Anonymous (not verified) commentedSince the plugin manager has the ability to update and remove files, I just thought that it would be nice for users to get a notice before overwriting any customized files. Just one quick md5file() for each file during installation and one more for each for before removing it. Anything that wasn't installed via the plugin manager will just be assumed to be unchanged.