Be the first to rate this file! 21 Downloads (last 30 days) File Size: 52.5 KB File ID: #42873
image thumbnail

Check4updates

by Bjorn Gustavsson

 

29 Jul 2013 (Updated 01 Aug 2013)

Check4updates tracks updates of your favourite FeX packages, with GUI-selection for download.

| Watch this File

File Information
Description

With a large number of FeX packages installed it is difficult to keep track of updates and modifications. Check4updates is a utility to keep track of such updates and provides the user with a handy interface where the user can select updated packages for downloading. The list of FeX contributions to track is contained in a separate function for easy Creation, modification and extension. The downloaded files are by default saved in a separate directory to allow the user to inspect/modify/verify before installing the updates.

*Added a function handle as third input argument. That function should return a file/directory-name FexId cell-array and require no input arguments. This makes it possible to use this function as a package aggregator if one wants to distribute a package that requires a number of FeX contributions, simply make a function listing all required FeX packages and have the recipient run-download-install those.

Developed and tested in 2012a but nothing fancy is used, should work on far older releases.

Acknowledgements

Check Version Check For A Newer File Version On The File Exchange inspired this file.

MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
fex package update tracking, gui, manage download, programming
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
01 Aug 2013 Oleg Komarov

There is a fundamental flaw in CheckVersion. The current .m file's date is checked against the (Updated ...). The problem is that, unless the uploader and TMW publish the file on the same day it was last changed, this tool will signal false positives. I would suggest asking TMW to provide a "last modified" field, next to each file entry to make this design flawless.

31 Jul 2013 Bjorn Gustavsson

I managed to insert a new bug. Update on its way, for those that prefer to fix it now lines 287-288:
iCBstop = findstr(cMSG,'}');
iBS = findstr(cMSG,'\');
should be replaced with:
iCBstop = findstr(cMSG,'}');
if isempty(iCBstop)
iCBstop = 0;
end
iBS = findstr(cMSG,'\');
if isempty(iBS)
iBS(2) = length(cMSG)+1;
end

31 Jul 2013 Bjorn Gustavsson

Jonathan, an updated version is on its way, the bug is fixed, I changed the behaviour to also list FeX contributions not found locally so that those can be downloaded. In addition to that I modified the function to also take an optinal function handle as input argument, that will be used to produce the list of functions to watch for. That way users get the flexibility to create that watch-list whichever way.

29 Jul 2013 Jonathan Lister

I love the idea of this, but unfortunately there's a few problems. The variable iAvailable starts at 1 so it will always try to build the table for you even if no updates are available. Which causes an error... Set iAvailable to zero and increment it first thing within the if statement. It would also be good if we could just give it a list of FeX IDs and if the file is not found give us the option to download and install it. I'll give you a chance to work this further before I give you a rating.

Updates
31 Jul 2013

Indexing bug fixed.
Changed the behaviour to also offer downloading of packages not found locally
Added a function handle input argument for flexibility of files-to-watch for

01 Aug 2013

Removed indexing bug in Check4updates.m

Contact us