micbat / x-wrt

Automatically exported from code.google.com/p/x-wrt
0 stars 0 forks source link

ipkg interface page needs an upgrade method #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
package page currently shows installed and available packages, but there is
no way to see what packages have upgrades available.

implementation details don't matter much, but simply adding another link
for each installed package that has an upgrade would suffice. 

10/08/07 11:20:14 changed by lubek

It is not desired to upgrade packages. There are only several reasons to
upgrade a package and it should be available only to an experienced user
(it can be done using the ipkg on the command line).

The available space in the jffs2 partition would be decreased by upgrading
packages installed in the squashfs partition. It would result in broken
devices for not much experienced users. We do not know the final space
requirements in the jffs2 partition; an additional test for the available
space to enable the feature only for potentially upgradable packages will
enormously increase the load time. The user should use an updated image
when necessary.

The implementation details matter! This page is the slowest page. Adding
only a link to all packages will increase the load time by several seconds
(see http://forum.x-wrt.org/index.php/topic,20.0.html). Moreover the test
for an update or a downgrade would slow it even more. I have already tested
similar features. The load time would be a minute or even several minutes
(to check every package with the standalone ipkg command). The only
solution is to include a special preprocessed report command for webif2
into ipkg or to create an extra program to process ipkg's outputs (or to
process the lists and the status data) and prepare the preprocessed data
for the webif2 page.

Original issue reported on code.google.com by kemen04@gmail.com on 27 Jun 2008 at 1:24