TMI: Still with the package database
Jul. 2nd, 2013 04:39 pmHacked on the package database more. rustpkg list works! Still with the totally simple text-file scheme I mentioned yesterday, of course.
Now I'm implementing the uninstall command while making sure that uninstalling deletes the package from the package database. uninstall is also mildly interesting because the database stores the exact version (filling in 0.1 as the default), but I don't want you to have to specify an exact version when uninstalling; so rustpkg uninstall foo should delete foo-0.5 if there's exactly one version of foo, 0.5, installed. But then, what if there were multiple versions of foo? Should this delete all versions, the most recently-installed one, or error out asking you to be more specific? I'm not sure yet.
I'm still anxiously waiting for bors to merge the pull request I submitted yesterday, for rustpkg build with no arguments; the build infrastructure has been a bit finicky lately.
Now I'm implementing the uninstall command while making sure that uninstalling deletes the package from the package database. uninstall is also mildly interesting because the database stores the exact version (filling in 0.1 as the default), but I don't want you to have to specify an exact version when uninstalling; so rustpkg uninstall foo should delete foo-0.5 if there's exactly one version of foo, 0.5, installed. But then, what if there were multiple versions of foo? Should this delete all versions, the most recently-installed one, or error out asking you to be more specific? I'm not sure yet.
I'm still anxiously waiting for bors to merge the pull request I submitted yesterday, for rustpkg build with no arguments; the build infrastructure has been a bit finicky lately.