taskWeeChat - Tasks: task #10042, Protect scripts modified locally...

 
 

task #10042: Protect scripts modified locally to be overridden by weeget

Submitter:  rettub <rettub>
Submitted:  Tue 05 Jan 2010 07:15:12 PM UTC
   
 
Category:  scripts Should Start On:  Tue 05 Jan 2010 12:00:00 AM UTC
Should be Finished on:  Tue 05 Jan 2010 12:00:00 AM UTC Priority:  * 5 - Normal
Status:  Cancelled Privacy:  Public
Assigned to:  flashcode Percent Complete:  0%
Originator Name:  Open/Closed:  Closed
Planned Release:  0.3.9 IRC nick:  rettub
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Oct 2012 01:34:15 PM UTC, comment #1: 

Done in the new "script" plugin (added in version 0.3.9): now you can "hold" a script, so it is not updated any more (see /help script).

By the way, weeget.py is now an obsolete script, it has been replaced by this "script" plugin.

Sebastien Helleu <flashcode>
Group administrator
Tue 05 Jan 2010 07:15:12 PM UTC, original submission:  

As said in the summary, if you modify a scripts locally, weeget's upgrade function is quite useless.

1st solution could be to make it possible marking a script as 'hold', and then if doing an upgrade, download the script, but save it e.g. as 'scriptname.ext.new'. (explicit hold)

2nd, store modification time of installed scripts, and while doing an upgrade, check current mtime of the script and compare it to that stored one, if current mtime is newer, use solution for saving described under #1. (implicit hold)

Finally, throw a hint if script couldn't be overwritten during upgrade.

Surely, implementing something like #1 and #2 would be best :)

rettub <rettub>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by rettub (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-18 flashcode Open/ClosedOpen Closed
        Planned ReleaseNone 0.3.9
    2012-10-18 flashcode StatusNone Cancelled
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code