OSDN Git Service

SDK Manager: fix handling of source URLs. Do not merge.
authorRaphael <raphael@google.com>
Wed, 5 Oct 2011 20:36:29 +0000 (13:36 -0700)
committerRaphael Moll <raphael@google.com>
Wed, 5 Oct 2011 20:54:41 +0000 (13:54 -0700)
commit68ce843e28c93465c48db84de09821347cdc8f6a
treeac6c6d48263e26607652f61579210566c848c9a0
parentd55b705d33316e05abfc23cec34708307a4d226e
SDK Manager: fix handling of source URLs. Do not merge.

This changes how source URLs are handled. Packages
from different sources were previously treated as
separate if the packages were the same (e.g. same
platform API) but the source URLs were different.

Instead this checks the hostname+domain name of the URL
is different, as well as the type of the source (that
is a sdk repository vs addon repository).

(cherry picked from commit d66d4b7804ce5585bed335168a0c7f3f178a11b0)

Change-Id: Ic127c4111e5028d467ad89c987c5f39cb8f8e8d7
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/PackagesDiffLogic.java
sdkmanager/libs/sdkuilib/tests/com/android/sdkuilib/internal/repository/sdkman2/PackagesDiffLogicTest.java