News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Sortable Packages (and Installed Time)

Started by Arantor, December 23, 2009, 10:07:34 AM

Previous topic - Next topic

Arantor

Link to Mod

Shows the time mods were installed in the package manager. Starting with version 1.1 of the mod it also allows you to order packages in the package manager, by name or time of install!

It cannot be backported to 1.1.x, the time of installation is not even recorded. Please do NOT ask for a 1.1.x version.


Version History

1.3.5 - 27 January 2014
Compatibility for 2.0.7 (no code changes)
Removed reference to old package server that no longer exists

1.3.4 - June 22 2013
Compatibility for 2.0.4 (no code changes)

1.3.3 - 28 July 2012
2.0 - 2.0.2 Support
Dropped support for all RC versions

1.3 - 9 March 2010
RC3 support.
1.2 is left for compatibility reasons on the site for those users migrating from RC2.
1.3 is the only version that supports RC3.

1.2 - 7 January 2010
Fixed stupid bug with collision of package ids when multiple packages with the same id are present (i.e. old packages and subsequent upgrades)

1.1 - 4 January 2010
Added support for sorting packages by name or installed time
Rebranded mod to 'Sortable Packages (and Installed Time)'

1.0 - 15 December 2009
First release

butchs

I will defiantly use this mod.   This is one useful mod.  Love it.  Thank you!!!!   :)

Time and time again I have been annoyed because I had to use my powers of deduction to find out the mod installation order so I can uninstall a particular mod for an update.

A cool feature for future versions could be to list them by installation order or allow sort by installation order?   O:)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Arantor

Unfortunately it's just not as simple as that, I only wish it were. It is mostly dependent on your filesystem as to what order they will appear in, and rewriting the guts of the package manager is something I really don't want to do in a mod.

butchs

Quote from: Arantor on January 03, 2010, 07:50:29 PM
... rewriting the guts of the package manager is something I really don't want to do in a mod.

I do not blame you.  The dates are still much better than what we had before.  I can live with them.  Still love the mod!
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Arantor

I did look at it for this mod, actually, to see if it was something easily fixable, sadly it's not :(

Arantor

Though I had a brainstorm after sleeping on it, and bam! It's done :)

Spoogs

nice addition, having the dates was nice enough  8)

Arantor

Thanks - but finally I get to lay this one to rest. ;D

butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Arantor

Thanks :)

I'm glad I could finally put this to bed. I did raise the question of this code - or some cleaner variation on it - being added to SMF core sometime, but no answer yet.

Spoogs


kai920

Excellent Arantor, thank you for this.

I was just testing this on my site and I noticed several mods were no longer listed after applying your mod. For example I wanted to uninstall "Wysiwyg Quick Reply RC2" and did not find it listed.

I unapplied your mod and it still wasn't there - so I re-uploaded WysiwygQuickReply_RC2.zip in order to uninstall it.

What did I do wrong?

Arantor

The mod doesn't remove anything, nor does it change anything. It just soft-rewrites the list of mods installed.

I can only assume the mod's package file was removed at some other time.

kai920

I just ran another very simple test - I had 44 packages listed (some installed, some not), and applied your mod. When I browsed my package list again, the number is at 42.  ???

Uninstalling it brings the number back up to 44.

Arantor

Huh. That's very strange.

Do you know what the mods that were missing were, what filenames they and whether they were installed or not?

kai920

I'll try to spot the 'missing packages' and will get back to you.

Arantor

Also, were they missing from Installed Packages or Browse Packages?

kai920

I see why - I have 2 packages doubled up that have the same name, but different versions:

Sitemap    2.1.0  (installed)
Sitemap    2.0.0 (not installed)

Aeva ~ Auto-Embed Video & Audio   7.0 (2 instances)

After I apply your mod, for Sitemap I only see 2.0.0

PS. This is in Browse Packages

Arantor

Ah, that makes sense. The method it uses for sorting is based on package id, which for those instances, the package id matches where there is a duplicate - and it can only consider a single instance of package id because that's the array key.

I'll look at fixing that shortly, thanks for the report :)

kai920

I don't understand your explanation 100%, but I trust you'll find a fix for it.  Glad I could help in a small way :)

Advertisement: