From d1f70d9929ddd2748ccc9c1dd2f9603068e1f3e6 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 19 May 2009 14:58:02 -0700 Subject: Refactor how projects parse remotes so it can be replaced We now feed Project a RemoteSpec, instead of the Remote directly from the XmlManifest. This way the RemoteSpec already has the full project URL, rather than just the base, permitting other types of manifests to produce the URL in their own style. Signed-off-by: Shawn O. Pearce --- remote.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 remote.py (limited to 'remote.py') diff --git a/remote.py b/remote.py deleted file mode 100644 index bb8f740c..00000000 --- a/remote.py +++ /dev/null @@ -1,22 +0,0 @@ -# -# Copyright (C) 2008 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -class Remote(object): - def __init__(self, name, - fetch=None, - review=None): - self.name = name - self.fetchUrl = fetch - self.reviewUrl = review -- cgit v1.2.3-54-g00ecf