Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 267534 - Plug-ins are always downloaded even when archived update site is present
Summary: Plug-ins are always downloaded even when archived update site is present
Status: RESOLVED DUPLICATE of bug 266939
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Doug Schaefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-08 07:29 EDT by Mastermnd -- CLA
Modified: 2009-03-11 09:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mastermnd -- CLA 2009-03-08 07:29:59 EDT
First of all, this bug is for 5.0.2 NOT 5.0.1, but bugzilla still has no option for 5.0.2.

In the past, it has been possible to use the downloadable master site package for CDT to install offline. The new 5.0.2 master file has references to the update site and fails to find some dependencies with the message:

No repository found at http://download.eclipse.org/tools/cdt/releases/ganymede
  Error reading update site http://download.eclipse.org/tools/cdt/releases/ganymede.
  download.eclipse.org

To reproduce:
1) Disconnect from the internet
2) Unzip Eclipse 3.4.2 JEE
3) Run Eclipse 3.4.2 for the first time; choose workspace (any)
4) Go to Help->Software Updates...>Available software (tab)
5) Click on "Add site" -> "archive".
6) Locate the CDT 5.0.2 master site zip file
7) You will see the error I am talking about
8) Installation can still proceed, but maybe some dependencies are not installed?
By simple examination I cannot tell the impact of this, but I believe it should be reviews by the devel team to make sure it's working ok.

Thanks!
Comment 1 Vivian Kong CLA 2009-03-09 13:12:36 EDT
I don't think the error will corrupt your CDT installation.  The message came from update manager when it tries to generate content for all of its update sites.  It failed since there is no internet connection.

Try disabling all update sites in the update manager (go to Help -> Software Updates -> Manage Sites and uncheck online sites) except the archived site you downloaded and the error message should go away. 

Comment 2 Mastermnd -- CLA 2009-03-09 17:12:58 EDT
Vivian,

Thank you for the feedback. The reason I posted this in the first place is that i noticed the installation was downloading many files from the internet if using the master zip file but still connected to the net. When installing offline, i noticed the installation appeared to be OK (i've compiled a few simple programs with mingw), but the error message popped up so i was suspicious. 

With your input I have managed to reach some conclusions:

1) The new master site file adds the http://download.eclipse.org/tools/cdt/releases/ganymede to the update manager (default: checked)

2) Offline, this causes a harmless popup to appear, but installation appears to be successful. It can be worked around by using your instructions. If unchecked, the error does not appear any longer.

HOWEVER;

3) If the user is online and just using the master zip file to, for example, save bandwidth, the update manager "calculates all the dependencies" and redownloads the whole CDT suite again, instead of using the master file!
(I just confirmed this). This can ALSO be fixed by unchecking the above site after the master zip file is added but before installing, at least until installation is finished :)

I hope this entry helps some sysadmins wondering what's going on :)
I am changing the priority to trivial, as it's not a stopper in any way and your workaround is good enough.

If noone is ever going to fix this then you can close this ticket as you see fit.

Kind regards,
--M^2
Comment 3 Mastermnd -- CLA 2009-03-11 07:15:28 EDT
OK, a few days later: While deploying to a few computers I noticed this again:

>>If the user is online and just using the master zip file to,
>>for example, save bandwidth, the update manager "calculates
>>all the dependencies" and redownloads the whole CDT suite
>>again, instead of using the master file!

The solution from before does not work.

When a connection is present, the files are ALWAYS downloaded from the net instead of using the master file. If the master file needs to be used, the connection to the update site must be severed.


Comment 4 Vivian Kong CLA 2009-03-11 09:55:49 EDT
(In reply to comment #3)

> When a connection is present, the files are ALWAYS downloaded from the net
> instead of using the master file. If the master file needs to be used, the
> connection to the update site must be severed.

This is a p2 behaviour so I'm moving this to Equinox.  Changing summary to better reflect the bug.

Did a quick search and it seems to be a duplicate of bug 266939.  Feel free to reopen if you think otherwise.

*** This bug has been marked as a duplicate of bug 266939 ***