| Summary: | Can't get rid of old repositories | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Ib Nielsen <ib.ihler.nielsen> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ib.ihler.nielsen |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This bug was marked as stalebug a while ago. Marking as worksforme. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag. |
Build Identifier: 20100917-0705 I have a p2.inf file that I export with a RCP. The p2.inf update file looks like this : instructions.configure=\ addRepository(type:0,location:http${#58}//127.0.0.1:7788/repository);\ addRepository(type:1,location:http${#58}//127.0.0.1:7788/repository); Next I want to change the repository and my new p2.inf file looks like this : instructions.configure=\ addRepository(type:0,location:file${#58}///c:/ibn/updatetest/repository);\ addRepository(type:1,location:file${#58}///c:/ibn/updatetest/repository); I now use the file system instead of a http server to host my repository. I actualle works. The problem is that P2 still tries to contact the old repository located on the http server and if the http server has stopped it takes forever for P2 to find that out when my application checks for updates. I have tried to remove the old repository location with : instructions.configure=\ addRepository(type:0,location:file${#58}///c:/ibn/updatetest/repository);\ addRepository(type:1,location:file${#58}///c:/ibn/updatetest/repository);\ removeRepository(type:0,location:http${#58}//127.0.0.1:7788/repository);\ removeRepository(type:1,location:http${#58}//127.0.0.1:7788/repository); but it does not seem to work. Reproducible: Always Steps to Reproduce: 1. make a p2.inf file that points to a http server thats hosts the repository 2. export the product 3. change p2.inf to point to a file based repository instead 4. export the product again 5. now start the RCP but make sure nothing is listening on the port from step 1 6. it takes forever for P2 to find out that it can't use the http server