I was having strange problems with Fink and FinkCommander, so I uninstalled and reinstalled them with the latest versions. Now, when I install a new package from FinkCommander, after it finishes installing, there is no indication in FinkCommander that the package is installed. If I do "fink list --installed" from the command line, the package is listed as installed, but FC doesn't know anything about that. Sometimes quitting and rerunning FC fixes the problem, sometimes not.
I looked through logs, and all I see are messages pertaining to me exiting FinkCommander when I quit. And none at all from today.
The bug described here (bug #1890191), matches my bug description, which I falsely reported within the "Fink" site as bug #2793471. See http://sourceforge.net/tracker/?func=detail&atid=117203&aid=2793471&group_id=17203
In order to help, I quote my detailed bug report here.
---
FinkCommander columns "Installed" + "Status" incorrect
BUG DESCRIPTION:
Under certain circumstances the data of FinkCommander in the columns "Installed" and "Status" cannot be trusted!
If you install a package, and later uninstall it, then the previously installed version number still remains in the "Installed" column, even though its binary (and source) is/are already removed! "installed" should be blank, but it isn't! And also "Status" will show either "current" or "outdated" even though you just archived it, and hence the status should correctly be "archived" or when you removed it at all (binary and source) it should be blank!
Also the other way round, if you reinstall an archived package, FinkCommander shows false information in the comlumns "Installed" and "Status".
Also a relaunch of FinkCommander does not update this column's information!
The only way to get a reliable update for this column is to use Selfupdate and then the information is updated as a side-effect!
If the only thing you want is, to get a reliable information on which packages are currently installed without altering your installation, you have no way to achieve this in FinkCommander!!!
One can only rely on the CLI version for this!
SOFTWARE ENVIRONMENT:
Max OS X 10.5.5
FinkCommander 0.5.4
fink 0.29.5-41
RELATED BUG REPORTS:
There is bug #2463116 which was closed without any further notice.
I think the reporter was meaning the same bug.
I can understand that there was no follow-up as his report lacked clear informations.
SUGGESTION:
Therefore I propose, that when un/installing packages FinkCommander shall immediately correctly update the columns "Installed" and "Status".
Or if this is too much, at least a menu for manually refreshing the "Installed" column.
Something which might be of interest for debugging:
When installing or uninstalling packages, I noticed in the status bar at the bottom of the window, that FinkCommander shorty shows "Updating table information". So my suggestion seems to be somehow already implemented, the only problem being, that its implementation only works bundled with the Selfupdate action, but not after an un/installation process.
STEPS TO REPRODUCE BUG:
1) Select any arbitrary package in the list.
2) If it is yet not installed, install it! Or if it is installed, remove and archive it.
3) See FinkCommander's columns "status" and "installed". They will be false!
4) Run "fink list <any-package-name>" and see the true information!
EXAMPLE:
I have installed the package "php5-cli".
I did not like it for some reasons, and choose "Remove binary".
I wanted to check, whether it was correctly uninstalled.
When I queried in the Fink CLI Version I got the correct output, which is a blank "installed" column, no false "i":
$ fink list php5-cli
Information about 8274 packages read in 1 seconds.
php5-cli 5.2.6-5 Command-line interpreter...
But when I queried in FinkCommander, it showed me FALSE information:
name status version binary installed
php5-cli current 5.2.6-5 5.2.6-5 5.2.6-5
Only after using "Selfupdate" FinkCommander showed me the CORRECT information:
name status version binary installed
php5-cli archived 5.2.6-5 5.2.6-5
Is bug 1890191 now fixed in the freshly released FinkCommander 0.5.5?
I've been able to reproduce this problem with 0.5.5. FinkCommander keeps a cache under /Users/username/Library/Application Support/FinkCommander/infocache. After a Fink operation, FinkCommander compares infocache's timestamp with Fink's and only updates the package catalog if infocache is older than Fink's last update. For some reason this comparison is not working so FinkCommander never refreshes its infocache after invoking Fink.
I'm working on this.
@Monipol: Thanks for following up the bug!